Skip to content

Commit ac7edfb

Browse files
committed
Merge pull request Kong#71 from feross/master
standard
2 parents 5030654 + e208759 commit ac7edfb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/helpers/code-builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var util = require('util')
1414
var CodeBuilder = function (indentation, join) {
1515
this.code = []
1616
this.indentation = indentation
17-
this.lineJoin = join ? join : '\n'
17+
this.lineJoin = join || '\n'
1818
}
1919

2020
/**

src/targets/java/okhttp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module.exports = function (source, options) {
4444
} else {
4545
code.push(1, '.method("%s", null)', source.method.toUpperCase())
4646
}
47-
}else if (methodsWithBody.indexOf(source.method.toUpperCase()) >= 0) {
47+
} else if (methodsWithBody.indexOf(source.method.toUpperCase()) >= 0) {
4848
if (source.postData.text) {
4949
code.push(1, '.%s(body)', source.method.toLowerCase())
5050
} else {

0 commit comments

Comments
 (0)