diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-02-16 01:03:50 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-02-16 08:46:29 +0300 |
commit | d21e54c0ce68412be3de130265a61493c44bda14 (patch) | |
tree | 170e81d0643a6a1ab6bea1832689185304608676 | |
parent | e65298794725e5df22d7e1fdfee62fbc49c44857 (diff) |
simplify eslint rake task
-rw-r--r-- | lib/tasks/eslint.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/eslint.rake b/lib/tasks/eslint.rake index d440085696d..51f5d768102 100644 --- a/lib/tasks/eslint.rake +++ b/lib/tasks/eslint.rake @@ -1,8 +1,8 @@ unless Rails.env.production? desc "GitLab | Run ESLint" task eslint: ['yarn:check'] do - sh "yarn run eslint" do |ok, res| - abort('rake eslint failed') unless ok + unless system('yarn run eslint') + abort('rake eslint failed') end end end |