Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 2e40fb8

Browse files
achingbrainalanshaw
authored andcommittedMay 23, 2018
chore: do not add newlines to object data (#1352)
1 parent fe51c47 commit 2e40fb8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/cli/commands/object/data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
throw err
1818
}
1919

20-
print(data.toString())
20+
print(data.toString(), false)
2121
})
2222
}
2323
}

‎test/cli/object.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe('object', () => runOnAndOff((thing) => {
6060

6161
it('data', () => {
6262
return ipfs('object data QmZZmY4KCu9r3e7M2Pcn46Fc5qbn6NpzaAGaYb22kbfTqm').then((out) => {
63-
expect(out).to.eql('another\n')
63+
expect(out).to.eql('another')
6464
})
6565
})
6666

0 commit comments

Comments
 (0)
This repository has been archived.