mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-07 16:40:21 +09:00
policy/v2: drop useless comment on checkPeriod parse
This commit is contained in:
@@ -2795,10 +2795,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
|
||||
|
||||
Reference in New Issue
Block a user