]> git.openstreetmap.org Git - rails.git/blobdiff - bin/yarn
Merge remote-tracking branch 'upstream/pull/2189'
[rails.git] / bin / yarn
index 38f278aa087e2bbab837f887c2ff66b90b40d8be..99e5e77285b1827fe23d420604d7c90eff4b44d7 100755 (executable)
--- a/bin/yarn
+++ b/bin/yarn
@@ -1,11 +1,9 @@
 #!/usr/bin/env ruby
 APP_ROOT = File.expand_path("..", __dir__)
 Dir.chdir(APP_ROOT) do
-  begin
-    exec "yarnpkg", *ARGV
-  rescue Errno::ENOENT
-    warn "Yarn executable was not detected in the system."
-    warn "Download Yarn at https://yarnpkg.com/en/docs/install"
-    exit 1
-  end
+  exec "yarnpkg", *ARGV
+rescue Errno::ENOENT
+  warn "Yarn executable was not detected in the system."
+  warn "Download Yarn at https://yarnpkg.com/en/docs/install"
+  exit 1
 end