Skip to content

Commit

Permalink
RUBOCOP RedundantReturn
Browse files Browse the repository at this point in the history
  • Loading branch information
mroth committed Mar 23, 2014
1 parent af0cac4 commit 78fcbf8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/lolcommits/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def self.command_which(cmd)
return exe if File.executable? exe
end
end
return nil
nil
end
end
end
2 changes: 1 addition & 1 deletion lib/lolcommits/plugins/lol_twitter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def configure_options!
return # return nil if configure_auth failed
end
end
return options
options
end

def configure_auth!
Expand Down
12 changes: 6 additions & 6 deletions rubocop-todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ Proc:
RedundantBegin:
Enabled: false

# Offence count: 2
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleReturnValues.
RedundantReturn:
Enabled: false

# Offence count: 67
# Cop supports --auto-correct.
# NOTE: I want to understand this one better before auto it -mroth
Expand Down Expand Up @@ -96,6 +90,12 @@ RegexpLiteral:
CyclomaticComplexity:
Max: 10

# Offence count: 2
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleReturnValues.
# RedundantReturn:
# Enabled: true

# Offence count: 1
# AccessorMethodName:
# Enabled: true
Expand Down

0 comments on commit 78fcbf8

Please sign in to comment.