Skip to content

Commit

Permalink
Use nil?
Browse files Browse the repository at this point in the history
    * scripts/converting/convert_plan.rb:
  • Loading branch information
jwillemsen committed Feb 15, 2024
1 parent ed820fa commit 42a174a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/converting/convert_plan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def self.run(options)

parser.parse!

if options[:cdp_plan_in] == nil
if options[:cdp_plan_in].nil?
begin
print 'Enter filename of input cdp plan: '
input_file = gets.chomp
Expand All @@ -206,7 +206,7 @@ def self.run(options)
end until options[:cdp_plan_in] != nil
end

if options[:cdp_plan_out] == nil
if options[:cdp_plan_out].nil?
begin
print 'Enter filename of output cdp plan: '
output_file = gets.chomp
Expand Down

0 comments on commit 42a174a

Please sign in to comment.