mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-18 00:45:06 +00:00
policy/v2: drop useless comment on checkPeriod parse
This commit is contained in:
parent
2ec7a71a56
commit
2499c066a3
1 changed files with 0 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue