Skip to content

Commit

Permalink
Fix new rubocop warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Nov 5, 2024
1 parent 91ba6ae commit e15a92a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/short_link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def decode(str)
else
3.times do
x <<= 1
x |= 1 unless (t & 32).zero?
x |= 1 unless t.nobits?(32)
t <<= 1

y <<= 1
y |= 1 unless (t & 32).zero?
y |= 1 unless t.nobits?(32)
t <<= 1
end
z += 3
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/api/relations_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ def check_changeset_modify(bbox)

# create a new changeset for this operation, so we are assured
# that the bounding box will be newly-generated.
changeset_id = with_controller(Api::ChangesetsController.new) do
with_controller(Api::ChangesetsController.new) do
xml = "<osm><changeset/></osm>"
put changeset_create_path, :params => xml, :headers => auth_header
assert_response :forbidden, "shouldn't be able to create changeset for modify test, as should get forbidden"
Expand Down

0 comments on commit e15a92a

Please sign in to comment.