Skip to content

Commit

Permalink
Fixing tags check for undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Chiu committed Sep 19, 2014
1 parent 25892f6 commit bbbbc59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/swagger-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ SwaggerClient.prototype.buildFromSpec = function(response) {
for(httpMethod in response.paths[path]) {
var operation = response.paths[path][httpMethod];
var tags = operation.tags;
if(typeof tags === undefined)
if(typeof tags === 'undefined')
tags = [];
var operationId = this.idFromOp(path, httpMethod, operation);
var operation = new Operation (
Expand Down

0 comments on commit bbbbc59

Please sign in to comment.