Skip to content

Commit

Permalink
Return null if no match, prep for 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
websemantics committed Mar 31, 2017
1 parent 70a7f32 commit 4e1b983
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "file-icons-js",
"main": "index.js",
"version": "1.0.1",
"version": "1.0.2",
"homepage": "https://github.com/websemantics/file-icons-js",
"authors": [
"Daniel Brooker, <dan@nocturnalcode.com>",
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,7 @@

FileIcons.prototype.getClass = function(name) {
var match = this.db.matchName(name)
return match ? match.getClass() : 'text-icon'
return match ? match.getClass() : null
}

/**
Expand All @@ -1419,7 +1419,7 @@

FileIcons.prototype.getClassWithColor = function(name) {
var match = this.db.matchName(name)
return match ? match.getClass(0) : 'text-icon'
return match ? match.getClass(0) : null
}

return new FileIcons(icondb)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "file-icons-js",
"version": "1.0.1",
"version": "1.0.2",
"description": "File specific icons for the browser from Atom File-icons, https://github.com/file-icons/atom",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 4e1b983

Please sign in to comment.