Skip to content

Commit d9b686e

Browse files
committed
JT: Early return in #install_eclipse to reduce output for jt lint fast
1 parent 5bbbbe3 commit d9b686e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tool/jt.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1879,6 +1879,8 @@ def install(name, *options)
18791879

18801880
eclipse_tar = eclipse_url.split('/').last
18811881
eclipse_name = File.basename(eclipse_tar, '.tar.gz')
1882+
eclipse_path = File.expand_path("../#{eclipse_name}/#{eclipse_exe}", TRUFFLERUBY_DIR)
1883+
return eclipse_path if File.exist?(eclipse_path)
18821884

18831885
dir = File.expand_path('..', TRUFFLERUBY_DIR)
18841886
chdir(dir) do
@@ -1896,7 +1898,7 @@ def install(name, *options)
18961898
end
18971899
end
18981900

1899-
File.expand_path("../#{eclipse_name}/#{eclipse_exe}", TRUFFLERUBY_DIR)
1901+
eclipse_path
19001902
end
19011903

19021904
def clone_enterprise

0 commit comments

Comments
 (0)