pre-commit 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -75,7 +75,7 @@ class PreCommit
75
75
  end
76
76
 
77
77
  def reject_non_js(staged_files)
78
- staged_files.reject! { |f| f !~ /\.js$/ }
78
+ staged_files.select { |f| f =~ /\.js$/ }
79
79
  end
80
80
 
81
81
  def display_error(error_object, file)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: pre-commit
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.7
5
+ version: 0.1.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Shajith Chacko, Josh Lubaway