From: J Guthrie Date: Wed, 25 Jul 2018 01:04:04 +0000 (+0100) Subject: Switched if to unless to satisfy rubycop X-Git-Tag: live~2912^2~3 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/4ae7bb4178150fffe3857782f9e4edf158215eed?ds=sidebyside Switched if to unless to satisfy rubycop --- diff --git a/app/controllers/traces_controller.rb b/app/controllers/traces_controller.rb index a50f00829..2e3e6b8e6 100644 --- a/app/controllers/traces_controller.rb +++ b/app/controllers/traces_controller.rb @@ -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