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

fix: only try to get ipfs if argv is present #2504

Merged
merged 1 commit into from
Oct 3, 2019

Conversation

achingbrain
Copy link
Member

Sometimes you've done something silly like required a module that isn't installed or called a method that isn't a property of an object in which case argv won't have a value, causing an unrelated error to appear.

This PR just makes sure argv has a value before trying to access argv.getIpfs

Sometimes you've done something silly like required a module that
isn't installed or called a method that isn't a property of an object
in which case `argv` won't have a value, causing an unrelated error
to appear.

This PR just makes sure `argv` has a value before trying to access
`argv.getIpfs`
@achingbrain achingbrain merged commit 1281b9f into master Oct 3, 2019
@achingbrain achingbrain deleted the only-get-ipfs-if-argv-present branch October 3, 2019 11:30
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.

1 participant