mirror of
https://github.com/harness/drone.git
synced 2025-05-17 01:20:13 +08:00
fix linting error (#914)
This commit is contained in:
parent
05af8b777b
commit
a5fd2ce3f8
@ -64,7 +64,7 @@ func (in *ReportInput) Validate(
|
||||
|
||||
// Validate and sanitize the input data based on version; Require a link... and similar operations.
|
||||
if err := validatorFn(in, session); err != nil {
|
||||
return err
|
||||
return fmt.Errorf("payload validation failed: %w", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user