Skip to content

Commit

Permalink
Same fix for provider.GetReadOnly
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshiki Fujikane <[email protected]>
  • Loading branch information
ffjlabo committed Sep 18, 2024
1 parent b7011a5 commit f87754a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/piped/deploysource/deploysource.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (p *provider) GetReadOnly(ctx context.Context, lw io.Writer) (*DeploySource

if !p.done {
p.source, p.err = p.prepare(ctx, lw)
p.done = true
p.done = p.err == nil // If there is an error, we should re-prepare it next time.

Check warning on line 117 in pkg/app/piped/deploysource/deploysource.go

View check run for this annotation

Codecov / codecov/patch

pkg/app/piped/deploysource/deploysource.go#L117

Added line #L117 was not covered by tests
}

if p.err != nil {
Expand Down

0 comments on commit f87754a

Please sign in to comment.