handle nextUpHook is nil (#465)

This commit is contained in:
Yachen Mao 2024-10-20 23:54:02 +08:00 committed by GitHub
parent 4db98899f4
commit 3087aa4eb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -267,7 +267,10 @@ func (d *daemon) run() error {
return nil, nil
}
}
return nextUpHook(b)
if nextUpHook != nil {
return nextUpHook(b)
}
return b, nil
}
}