mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 14:55:58 +00:00
Drop error only on purpose or else report back or log (#514)
- Remove Deadcode - Simplify Code - Drop error only on purpose
This commit is contained in:
@@ -73,7 +73,9 @@ func (c *client) Next(ctx context.Context, f Filter) (*Pipeline, error) {
|
||||
p.ID = res.GetPipeline().GetId()
|
||||
p.Timeout = res.GetPipeline().GetTimeout()
|
||||
p.Config = new(backend.Config)
|
||||
json.Unmarshal(res.GetPipeline().GetPayload(), p.Config)
|
||||
if err := json.Unmarshal(res.GetPipeline().GetPayload(), p.Config); err != nil {
|
||||
log.Error().Err(err).Msgf("could not unmarshal pipeline config of '%s'", p.ID)
|
||||
}
|
||||
return p, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user