]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/traces_controller.rb
Switched if to unless to satisfy rubycop
[rails.git] / app / controllers / traces_controller.rb
index a50f00829815840e332ff5f5cb79923519c0ab7b..2e3e6b8e63c640083d4b4abdf6e2c514d6c750cc 100644 (file)
@@ -117,7 +117,7 @@ class TracesController < ApplicationController
         do_create(params[:trace][:gpx_file], params[:trace][:tagstring],
                   params[:trace][:description], params[:trace][:visibility])
       rescue StandardError => ex
-        render :action => "new" if !@trace.valid?
+        render :action => "new" unless @trace.valid?
         logger.debug ex
       end