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

cat interface-core upgrades #316

Merged
merged 2 commits into from
Jun 7, 2016
Merged

cat interface-core upgrades #316

merged 2 commits into from
Jun 7, 2016

Conversation

nginnever
Copy link
Member

this is part of the continuation of PR 256

@jbenet jbenet added the status/in-progress In progress label Jun 7, 2016
cat: promisify((hash, callback) => {
if (typeof hash === 'function') {
callback = hash
return callback('You must supply a multihash', null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An error should be a Error object

new Error('You must supply a multihash')

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, no need for null

@daviddias
Copy link
Member

Thank you @nginnever :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants