mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Minor naming and control flow changes to satisfy golint
This commit is contained in:
@@ -31,10 +31,8 @@ func (m Reason) validateReasonEnum(path, location string, value Reason) error {
|
||||
reasonEnum = append(reasonEnum, v)
|
||||
}
|
||||
}
|
||||
if err := validate.Enum(path, location, value, reasonEnum); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
err := validate.Enum(path, location, value, reasonEnum)
|
||||
return err
|
||||
}
|
||||
|
||||
// Validate validates this reason
|
||||
|
||||
Reference in New Issue
Block a user