diff options
-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 |