From 4ae7bb4178150fffe3857782f9e4edf158215eed Mon Sep 17 00:00:00 2001 From: J Guthrie Date: Wed, 25 Jul 2018 02:04:04 +0100 Subject: [PATCH] Switched if to unless to satisfy rubycop --- app/controllers/traces_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5