Skip to content

Commit 5235a0f

Browse files
叶思杰huacnlee
authored andcommitted
improve: since no instance variable will be used in block, instance_eval is better than instance_exec accoding to the semantic.
1 parent 356c6c1 commit 5235a0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/exception-track.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def config
2222
end
2323

2424
def configure(&block)
25-
config.instance_exec(&block)
25+
config.instance_eval(&block)
2626
end
2727
end
2828
end

0 commit comments

Comments
 (0)