Fix new rubocop warnings
This commit is contained in:
parent
fbd6909b91
commit
6c2093b29d
21 changed files with 51 additions and 0 deletions
|
@ -481,6 +481,7 @@ class ChangesetController < ApplicationController
|
|||
u = if name.nil?
|
||||
# user input checking, we don't have any UIDs < 1
|
||||
raise OSM::APIBadUserInput, "invalid user ID" if user.to_i < 1
|
||||
|
||||
u = User.find(user.to_i)
|
||||
else
|
||||
u = User.find_by(:display_name => name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue