policy/v2: use value receiver for SSHCheckPeriod.Validate

recvcheck ignores UnmarshalJSON, so the pointer receiver here was the
odd one out against value-receiver MarshalJSON. Validate only reads.
This commit is contained in:
Kristoffer Dalby authored and Kristoffer Dalby committed 2026-08-25 21:59:00 +02:00
1 parent 2c76d5c5b7
commit 77caa94400
1 file changed
+1 -1
+1 -1
View File
@@ -2850,7 +2850,7 @@ func (p SSHCheckPeriod) MarshalJSON() ([]byte, error) {
// Validate rejects negative durations and anything above the inclusive
// 168h max.
func (p *SSHCheckPeriod) Validate() error {
func (p SSHCheckPeriod) Validate() error {
if p.Always {
return nil
}