pre-commit 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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