Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Resolve hat path when applying a hat #181

Merged
merged 1 commit into from
May 23, 2019
Merged

Resolve hat path when applying a hat #181

merged 1 commit into from
May 23, 2019

Conversation

nathanpotter
Copy link
Contributor

resolves #178

@nathanpotter nathanpotter requested a review from ammario May 23, 2019 16:15
@@ -248,6 +248,9 @@ func (c *runcmd) build(gf *globalFlags, proj *project, b *hatBuilder, r *runner)
image := b.baseImage
if b.hatPath != "" {
image, err = b.applyHat()
if err != nil {
return err
Copy link
Contributor

@teddy-codes teddy-codes May 23, 2019

Choose a reason for hiding this comment

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

can this be moved outside the if?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so, this keeps it clear that the error check if for the b.applyHat() operation

@nathanpotter nathanpotter merged commit d8a2de9 into master May 23, 2019
@nathanpotter nathanpotter deleted the hats branch May 23, 2019 16:29
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.

Error when applying a default hat
3 participants