Commit 0791626902f961f5ef5a96e79cc5341f9a5263c4

Authored by Laust Rud Jacobsen
1 parent e04936bb
Exists in master and in 1 other branch production

Rubocop: allow then clauses to be indented

Showing 2 changed files with 4 additions and 3 deletions   Show diff stats
.rubocop.yml
... ... @@ -37,3 +37,4 @@ Style/SpaceAroundOperators:
37 37 - '='
38 38 - '=>'
39 39 - '||='
  40 + - 'then'
... ...
app/models/problem.rb
... ... @@ -214,11 +214,11 @@ class Problem
214 214  
215 215 def self.ordered_by(sort, order)
216 216 case sort
217   - when "app" then order_by(["app_name", order])
218   - when "message" then order_by(["message", order])
  217 + when "app" then order_by(["app_name", order])
  218 + when "message" then order_by(["message", order])
219 219 when "last_notice_at" then order_by(["last_notice_at", order])
220 220 when "last_deploy_at" then order_by(["last_deploy_at", order])
221   - when "count" then order_by(["notices_count", order])
  221 + when "count" then order_by(["notices_count", order])
222 222 else raise("\"#{sort}\" is not a recognized sort")
223 223 end
224 224 end
... ...