File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ exports.api = function(args, opts) {
50
50
if ( add . trim ( ) [ 0 ] != 'y' ) {
51
51
console . log ( "" ) ;
52
52
console . log ( "Okay! To do it yourself, edit " + file . split ( '/' ) . slice ( - 1 ) [ 0 ] . yellow + " and add the following 'x-api-id' line:" ) ;
53
- exampleId ( apiId , file ) ;
53
+ exampleId ( file , apiId ) ;
54
54
55
55
console . log ( "" ) ;
56
56
console . log ( "Make sure you commit the changes so your team is all using the same ID." ) ;
@@ -65,7 +65,7 @@ exports.api = function(args, opts) {
65
65
} else {
66
66
console . log ( "We weren't able to add the ID automatically. In " + file . split ( '/' ) . slice ( - 1 ) [ 0 ] . yellow + ", add the following 'x-api-id' line:" ) ;
67
67
68
- exampleId ( apiId , file ) ;
68
+ exampleId ( file , apiId ) ;
69
69
70
70
console . log ( "Make sure you commit the changes so your team is all using the same ID." ) ;
71
71
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ exports.addId = function(file, id) {
117
117
118
118
if ( file . match ( / j s o n $ / ) ) {
119
119
try {
120
- JSON . parse ( content ) ;
120
+ JSON . parse ( contents ) ;
121
121
} catch ( e ) {
122
122
return false ;
123
123
}
You can’t perform that action at this time.
0 commit comments