Skip to content

Commit abbc7a5

Browse files
committed
Refactor the expression to try to foil lint complaint.
1 parent 9c4c487 commit abbc7a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/arduino_ci/cpp_library.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,8 @@ def build_for_test_with_configuration(test_file, aux_libraries, gcc_binary, ci_g
495495
lib_name = "arduino"
496496
if OS.windows?
497497
full_lib_name = "#{build_dir}/lib#{lib_name}.dll"
498-
ENV["PATH"] = build_dir + ((ENV["PATH"].include? ";") ? ";" : ":") + ENV["PATH"] unless ENV["PATH"].include? build_dir
498+
flag = ENV["PATH"].include? ";"
499+
ENV["PATH"] = build_dir + (flag ? ";" : ":") + ENV["PATH"] unless ENV["PATH"].include? build_dir
499500
else
500501
full_lib_name = "#{build_dir}/lib#{lib_name}.so"
501502
ENV["LD_LIBRARY_PATH"] = build_dir

0 commit comments

Comments
 (0)