diff --git a/src/compiler/crystal/command/spec.cr b/src/compiler/crystal/command/spec.cr index f518dade32ec..69ebbad97caa 100644 --- a/src/compiler/crystal/command/spec.cr +++ b/src/compiler/crystal/command/spec.cr @@ -96,10 +96,10 @@ class Crystal::Command output_filename = Crystal.temp_executable "spec" ENV["CRYSTAL_SPEC_COMPILER_BIN"] ||= if crystal_exec_path = ENV["CRYSTAL_EXEC_PATH"]? - File.join(crystal_exec_path, "crystal") - else - Process.executable_path - end + File.join(crystal_exec_path, "crystal") + else + Process.executable_path + end compiler.compile sources, output_filename report_warnings