Skip to content

Commit ab113b9

Browse files
committed
Remove useless use of tap
1 parent ea90c85 commit ab113b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/redis_client.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ class Error < StandardError
103103
include HasConfig
104104

105105
def self.with_config(message, config = nil)
106-
new(message).tap do |error|
107-
error._set_config(config)
108-
end
106+
error = new(message)
107+
error._set_config(config)
108+
error
109109
end
110110
end
111111

0 commit comments

Comments
 (0)