Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

should have been else if, obviously

  • Loading branch information...
commit 3a4428e0ff07b698ef7f8307c0181a4f866b0fbf 1 parent d28f1de
Dominic Tarr authored February 06, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  index.js
2  index.js
@@ -47,7 +47,7 @@ var parse = exports.parse = function (content, file, type) {
47 47
   if (!type) {
48 48
     try { return JSON.parse(content) }
49 49
     catch (er) { return ini.parse(content) }
50  
-  } if (type === 'json') {
  50
+  } else if (type === 'json') {
51 51
     if (this.emit) {
52 52
       try { return JSON.parse(content) }
53 53
       catch (er) { this.emit('error', er) }

0 notes on commit 3a4428e

Please sign in to comment.
Something went wrong with that request. Please try again.