Skip to content

Commit

Permalink
fix: merge conflict from master
Browse files Browse the repository at this point in the history
  • Loading branch information
beajer committed Jan 5, 2021
1 parent eff95ae commit 860cf32
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2390,7 +2390,7 @@ console.log(result.objects);
const result = await store.listV2({
delimiter: '/',
prefix: 'a/',
'start-after': 'a/b
'start-after': 'a/b'
});
console.log(result.objects);
```
Expand Down
3 changes: 1 addition & 2 deletions lib/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ proto.list = async function list(query, options) {
objects,
prefixes,
nextMarker: result.data.NextMarker || null,
isTruncated: result.data.IsTruncated
'true'
isTruncated: result.data.IsTruncated === 'true'
};
};

Expand Down
11 changes: 5 additions & 6 deletions test/node/object.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2283,13 +2283,12 @@ describe('test/object.test.js', () => {
}
};

const postFile = () =>
new Promise((resolve, reject) => {
request(options, (err, res) => {
if (err) reject(err);
if (res) resolve(res);
});
const postFile = () => new Promise((resolve, reject) => {
request(options, (err, res) => {
if (err) reject(err);
if (res) resolve(res);
});
});

const result = await postFile();
assert(result.statusCode === 204);
Expand Down

0 comments on commit 860cf32

Please sign in to comment.