Skip to content

Commit

Permalink
[FIXED] Removed unnecessary code #99
Browse files Browse the repository at this point in the history
  • Loading branch information
Beniamin Sarkisyan committed Jul 20, 2016
1 parent 49a8bf9 commit c80f595
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/generamba/code_generation/code_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,22 +62,22 @@ def initialize(name, description, rambafile, options)

if options[:module_file_path]
@module_file_path = options[:module_file_path].gsub(SLASH_REGEX, '')
@module_file_path = Pathname.new(@module_file_path).join(@name) if @module_file_path
@module_file_path = Pathname.new(@module_file_path).join(@name)
end

if options[:module_group_path]
@module_group_path = options[:module_group_path].gsub(SLASH_REGEX, '')
@module_group_path = Pathname.new(@module_group_path).join(@name) if @module_group_path
@module_group_path = Pathname.new(@module_group_path).join(@name)
end

if options[:test_file_path]
@test_file_path = options[:test_file_path].gsub(SLASH_REGEX, '')
@test_file_path = Pathname.new(@test_file_path).join(@name) if @test_file_path
@test_file_path = Pathname.new(@test_file_path).join(@name)
end

if options[:test_group_path]
@test_group_path = options[:test_group_path].gsub(SLASH_REGEX, '')
@test_group_path = Pathname.new(@test_group_path).join(@name) if @test_group_path
@test_group_path = Pathname.new(@test_group_path).join(@name)
end

# The priority is given to `module_path` and 'test_path' options
Expand Down

0 comments on commit c80f595

Please sign in to comment.