Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Default logic to publish #2677

Merged
merged 1 commit into from
May 14, 2016
Merged

Conversation

RichardLitt
Copy link
Member

Part of #2484

License: MIT
Signed-off-by: Richard Littauer [email protected]

@RichardLitt RichardLitt added the topic/docs-ipfs Topic docs-ipfs label May 12, 2016
return
}
verif, _, _ := req.Option("resolve").Bool()
popts.verifyExists = verif
Copy link
Member Author

Choose a reason for hiding this comment

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

popts.verifyExists, _, _ := req.Option("resolve").Bool()?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I was wrong. Removed that commend after little longer thinking.

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, actually - it may be smart to only set it to verif if it is found. The logic is slightly different, this way.

Copy link
Member

Choose a reason for hiding this comment

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

Does it make any difference? It is by default true, you can change it only by doing --verify=false.

Copy link
Member

Choose a reason for hiding this comment

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

I think what @RichardLitt proposed in his first comment is best, except use = instead of := since we're not declaring any new variables.

Copy link
Member

Choose a reason for hiding this comment

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

and then we can also change the popts declaration to just:

popts := new(publishOpts)

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@whyrusleeping whyrusleeping added the need/author-input Needs input from the original author label May 13, 2016
Part of #2484

License: MIT
Signed-off-by: Richard Littauer <[email protected]>
@RichardLitt RichardLitt force-pushed the feature/add-default-to-publish branch from a4f1f71 to 475d730 Compare May 14, 2016 00:26
@RichardLitt RichardLitt added need/review Needs a review and removed need/author-input Needs input from the original author labels May 14, 2016
@whyrusleeping whyrusleeping merged commit 0b701e8 into master May 14, 2016
@whyrusleeping whyrusleeping deleted the feature/add-default-to-publish branch May 14, 2016 22:29
RichardLitt added a commit to ipfs-inactive/http-api-spec that referenced this pull request May 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/review Needs a review topic/docs-ipfs Topic docs-ipfs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants