]> git.openstreetmap.org Git - rails.git/commitdiff
Switched if to unless to satisfy rubycop
authorJ Guthrie <jamie.guthrie@gmail.com>
Wed, 25 Jul 2018 01:04:04 +0000 (02:04 +0100)
committerJ Guthrie <jamie.guthrie@gmail.com>
Wed, 25 Jul 2018 01:04:04 +0000 (02:04 +0100)
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
         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
 
         logger.debug ex
       end