Skip to content

Commit

Permalink
fix a FIle.exists? deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
chastell committed Nov 12, 2016
1 parent 18edda7 commit a60bd56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/art-decomp/executable.rb
Expand Up @@ -15,7 +15,7 @@ def initialize args, opts = { logging_class: Logging }
end

Trollop.die 'no FSM given' if args.empty?
Trollop.die 'FSM does not exist' unless File.exists? args.first
Trollop.die 'FSM does not exist' unless File.exist? args.first

Trollop.die :archs, 'not in the form of inputs/outputs' unless options[:archs].all? { |s| s =~ /^\d+\/\d+$/ }
Trollop.die :uv, 'generator does not exist' unless (options[:uv] - UVGenerators.constants.map(&:to_s)).empty?
Expand Down

0 comments on commit a60bd56

Please sign in to comment.