Skip to content

Commit

Permalink
Fix Style/RedundantReturn error
Browse files Browse the repository at this point in the history
  • Loading branch information
pnatashap committed Jan 26, 2024
1 parent f3db176 commit 00c8ddf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/fake_github.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def accept_repository_invitation(id, _options = {})
end

def repositories(user = nil, _options = {})
return @repositories unless user
@repositories unless user
end

def issue(_)
Expand Down
2 changes: 1 addition & 1 deletion test/fake_gitlab.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def initialize(options = {})
end

def repositories(user = nil, _options = {})
return @repositories unless user
@repositories unless user
end

def issue(_)
Expand Down

0 comments on commit 00c8ddf

Please sign in to comment.