Skip to content

Commit

Permalink
Fix rubocop Style/IfUnlessModifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
hainesr committed Oct 16, 2018
1 parent 2b2901c commit 6bf8a45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
7 changes: 0 additions & 7 deletions .rubocop_todo.yml
Expand Up @@ -24,10 +24,3 @@ Style/GlobalVars:
- 'test/tc_read_file.rb'
- 'test/tc_reserved_names.rb'
- 'test/ts_container.rb'

# Offense count: 4
# Cop supports --auto-correct.
Style/IfUnlessModifier:
Exclude:
- 'lib/zip-container/container.rb'
- 'lib/zip-container/file.rb'
4 changes: 1 addition & 3 deletions lib/zip-container/container.rb
Expand Up @@ -148,9 +148,7 @@ def verify?
# This method raises a MalformedContainerError if there are any problems
# with the container.
def verify!
unless @mimetype_error.nil?
raise MalformedContainerError, @mimetype_error
end
raise MalformedContainerError, @mimetype_error unless @mimetype_error.nil?

verify_managed_entries!
end
Expand Down

0 comments on commit 6bf8a45

Please sign in to comment.