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

Commit

Permalink
chore: do not add newlines to object data
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed May 15, 2018
1 parent 95e74cc commit d79e935
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli/commands/object/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
throw err
}

print(data.toString())
print(data.toString(), false)
})
}
}
2 changes: 1 addition & 1 deletion test/cli/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('object', () => runOnAndOff((thing) => {

it('data', () => {
return ipfs('object data QmZZmY4KCu9r3e7M2Pcn46Fc5qbn6NpzaAGaYb22kbfTqm').then((out) => {
expect(out).to.eql('another\n')
expect(out).to.eql('another')
})
})

Expand Down

0 comments on commit d79e935

Please sign in to comment.