Skip to content

Commit 223c21d

Browse files
committed
Use unless instead of if !
1 parent 312aa93 commit 223c21d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/benchmark_suite.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def run_single_benchmark(bench_dir, entry, result_json_path)
7676
# Path to the benchmark runner script
7777
script_path = File.join(bench_dir, entry)
7878

79-
if !script_path.end_with?('.rb')
79+
unless script_path.end_with?('.rb')
8080
script_path = File.join(script_path, 'benchmark.rb')
8181
end
8282

0 commit comments

Comments
 (0)