Skip to content
Snippets Groups Projects
Commit ceec5a82 authored by Markus Reiter's avatar Markus Reiter
Browse files

Use guard clauses.

parent 9f513cc6
No related branches found
No related tags found
No related merge requests found
......@@ -11,10 +11,9 @@ module Hbc
@token = token
@sourcefile_path = sourcefile_path
@dsl = dsl || DSL.new(@token)
if block_given?
@dsl.instance_eval(&block)
@dsl.language_eval
end
return unless block_given?
@dsl.instance_eval(&block)
@dsl.language_eval
end
DSL::DSL_METHODS.each do |method_name|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment