Skip to content

Commit

Permalink
Fix Style/RedundantCondition cop
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver committed Mar 21, 2024
1 parent 77c44c9 commit c3eecd6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/foreman_discovery.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ namespace :test do
Rake::TestTask.new(:foreman_discovery) do |t|
test_dir = File.join(File.dirname(__FILE__), '..', 'test')
t.libs << ["test",test_dir]
if ENV['FILE'] || ENV['TEST']
t.pattern = ENV['FILE'] || ENV['TEST']
else
t.pattern = "#{test_dir}/**/*_test.rb"
end
t.pattern = ENV['FILE'] || ENV['TEST'] || "#{test_dir}/**/*_test.rb"
t.verbose = true
t.warning = false
end
Expand Down

0 comments on commit c3eecd6

Please sign in to comment.