mirror of
https://github.com/minio/minio.git
synced 2024-12-25 14:45:54 -05:00
batch: Fix a typo while validating smallerThan field (#18942)
This commit is contained in:
parent
b192bc348c
commit
61a4bb38cd
@ -213,11 +213,14 @@ func (b BatchJobSnowball) Validate() error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
_, err := humanize.ParseBytes(*b.SmallerThan)
|
_, err := humanize.ParseBytes(*b.SmallerThan)
|
||||||
return BatchJobYamlErr{
|
if err != nil {
|
||||||
line: b.line,
|
return BatchJobYamlErr{
|
||||||
col: b.col,
|
line: b.line,
|
||||||
msg: err.Error(),
|
col: b.col,
|
||||||
|
msg: err.Error(),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// BatchJobSizeFilter supports size based filters - LesserThan and GreaterThan
|
// BatchJobSizeFilter supports size based filters - LesserThan and GreaterThan
|
||||||
|
Loading…
Reference in New Issue
Block a user