Skip to content

Commit 2a37833

Browse files
committed
fix js style II
1 parent 3fe5afd commit 2a37833

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/cloudapi.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,9 +1116,10 @@ function listMachines(account, options, tags, callback) {
11161116
if (typeof (req.query.offset) === 'undefined') {
11171117
req.query.offset = 0;
11181118
}
1119-
if (headers['x-resource-count'] && headers['x-query-limit'])
1120-
done = (parseInt(headers['x-resource-count'], 10) <
1121-
parseInt(headers['x-query-limit'], 10) + req.query.offset);
1119+
if (headers['x-resource-count'] && headers['x-query-limit']) {
1120+
done = parseInt(headers['x-resource-count'], 10) <
1121+
parseInt(headers['x-query-limit'], 10) + req.query.offset;
1122+
}
11221123

11231124
self.log.debug({err: err, obj: obj, done: done},
11241125
'CloudAPI._get(%s)', req.path);

0 commit comments

Comments
 (0)