]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/memory_limits.rb
Fix rubocop style issues
[rails.git] / config / initializers / memory_limits.rb
index 199bda5c6952c6afc7d13e82db5131ab47b7e5cd..b58c1f28ed59346038b18bc1dee2f42909d6e84d 100644 (file)
@@ -17,9 +17,7 @@ if defined?(SOFT_MEMORY_LIMIT) && defined?(PhusionPassenger)
       status, headers, body = @app.call(env)
 
       # Restart if we've hit our memory limit
-      if resident_size > SOFT_MEMORY_LIMIT
-        Process.kill("USR1", Process.pid)
-      end
+      Process.kill("USR1", Process.pid) if resident_size > SOFT_MEMORY_LIMIT
 
       # Return the result of this request
       [status, headers, body]