policy/v2: drop useless comment on checkPeriod parse

This commit is contained in:
Kristoffer Dalby
2026-05-13 10:27:18 +00:00
parent 2b61b26772
commit c0a087461e
-4
View File
@@ -2946,10 +2946,6 @@ func (p *SSHCheckPeriod) UnmarshalJSON(b []byte) error {
return nil
}
// time.ParseDuration produces error strings like
// `time: invalid duration "abc"` which match SaaS body wording
// exactly; model.ParseDuration wraps the same parse with custom
// phrasing and would diverge.
d, err := time.ParseDuration(str)
if err != nil {
return err