Skip to content

Commit

Permalink
Avoid tap.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre authored and mergify[bot] committed Jan 31, 2021
1 parent 3ef92bb commit b614ba8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/rubocop/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ def initialize(hash = {}, loaded_path = nil)
end

def self.create(hash, path, check: true)
new(hash, path).tap { |config| config.check if check }
config = new(hash, path)
config.check if check

config
end

def loaded_features
Expand Down

0 comments on commit b614ba8

Please sign in to comment.