From e20875943d2fde291577e0f1957e53b57a88b8c0 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 16 Sep 2015 14:29:30 -0700 Subject: [PATCH] standard --- src/helpers/code-builder.js | 2 +- src/targets/java/okhttp.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/code-builder.js b/src/helpers/code-builder.js index ba13f3384..335ea34c0 100644 --- a/src/helpers/code-builder.js +++ b/src/helpers/code-builder.js @@ -14,7 +14,7 @@ var util = require('util') var CodeBuilder = function (indentation, join) { this.code = [] this.indentation = indentation - this.lineJoin = join ? join : '\n' + this.lineJoin = join || '\n' } /** diff --git a/src/targets/java/okhttp.js b/src/targets/java/okhttp.js index f610f035f..829d76a4b 100644 --- a/src/targets/java/okhttp.js +++ b/src/targets/java/okhttp.js @@ -44,7 +44,7 @@ module.exports = function (source, options) { } else { code.push(1, '.method("%s", null)', source.method.toUpperCase()) } - }else if (methodsWithBody.indexOf(source.method.toUpperCase()) >= 0) { + } else if (methodsWithBody.indexOf(source.method.toUpperCase()) >= 0) { if (source.postData.text) { code.push(1, '.%s(body)', source.method.toLowerCase()) } else {