Skip to content

Commit

Permalink
Style(main): Removed meaningless spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
fvdm committed Nov 28, 2016
1 parent e404443 commit 37aeafc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ function fixParams (obj) {

if (obj) {
for (key in obj) {
if (obj [key] instanceof Array) {
for (i = 0; i < obj [key] .length; i++) {
nw.push (key + '[]=' + encodeURIComponent (obj [key] [i]));
if (obj[key] instanceof Array) {
for (i = 0; i < obj[key].length; i++) {
nw.push (key + '[]=' + encodeURIComponent (obj[key][i]));
}
} else if (obj [key] instanceof Object) {
for (k in obj [key]) {
nw.push (key + '[' + k + ']=' + encodeURIComponent (obj [key] [k]));
} else if (obj[key] instanceof Object) {
for (k in obj[key]) {
nw.push (key + '[' + k + ']=' + encodeURIComponent (obj[key][k]));
}
} else {
nw.push (key + '=' + encodeURIComponent (obj [key]));
nw.push (key + '=' + encodeURIComponent (obj[key]));
}
}
}
Expand Down Expand Up @@ -117,7 +117,7 @@ module.exports = function (config) {
try {
data = JSON.parse (data);

if (Object.keys (data) .length === 1 && Object.keys (data.headers) .length === 0) {
if (Object.keys (data).length === 1 && Object.keys (data.headers).length === 0) {
error = new Error ('no result');
request.callback (error);
return;
Expand Down

0 comments on commit 37aeafc

Please sign in to comment.