This is an automated email from the ASF dual-hosted git repository. donaldp pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/buildr.git
commit 9b862f59c7d730ab53d94d665f82e7f87657eced Author: Peter Donald <pe...@realityforge.org> AuthorDate: Wed Jan 2 15:58:58 2019 +1100 SImplify conditionals --- lib/buildr/java/tests.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/buildr/java/tests.rb b/lib/buildr/java/tests.rb index 2cb9ee5..6c1bc99 100644 --- a/lib/buildr/java/tests.rb +++ b/lib/buildr/java/tests.rb @@ -309,11 +309,11 @@ module Buildr #:nodoc: cmd_args << '-log' << '2' cmd_args << '-d' << task.report_to.to_s exclude_args = options[:excludegroups] || [] - if !exclude_args.empty? + unless exclude_args.empty? cmd_args << '-excludegroups' << exclude_args.join(',') end groups_args = options[:groups] || [] - if !groups_args.empty? + unless groups_args.empty? cmd_args << '-groups' << groups_args.join(',') end # run all tests in the same suite