mirror of
https://github.com/minio/minio
synced 2024-11-05 17:34:01 +00:00
batch: Fix a typo while validating smallerThan field (#18942)
This commit is contained in:
parent
b192bc348c
commit
61a4bb38cd
1 changed files with 7 additions and 4 deletions
|
@ -213,11 +213,14 @@ func (b BatchJobSnowball) Validate() error {
|
|||
}
|
||||
}
|
||||
_, err := humanize.ParseBytes(*b.SmallerThan)
|
||||
return BatchJobYamlErr{
|
||||
line: b.line,
|
||||
col: b.col,
|
||||
msg: err.Error(),
|
||||
if err != nil {
|
||||
return BatchJobYamlErr{
|
||||
line: b.line,
|
||||
col: b.col,
|
||||
msg: err.Error(),
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// BatchJobSizeFilter supports size based filters - LesserThan and GreaterThan
|
||||
|
|
Loading…
Reference in a new issue