all: imp docs
This commit is contained in:
parent
491287164d
commit
11160bc62b
|
@ -66,7 +66,8 @@ type Persistent struct {
|
|||
|
||||
SafeSearch filtering.SafeSearch
|
||||
|
||||
// BlockedServices is the configuration of blocked services of a client.
|
||||
// BlockedServices is the configuration of blocked services of a client. It
|
||||
// must not be nil after initialization.
|
||||
BlockedServices *filtering.BlockedServices
|
||||
|
||||
Name string
|
||||
|
|
|
@ -267,7 +267,7 @@ func copyBlockedServices(
|
|||
var weekly *schedule.Weekly
|
||||
if sch != nil {
|
||||
weekly = sch.Clone()
|
||||
} else if prev != nil && prev.BlockedServices != nil {
|
||||
} else if prev != nil {
|
||||
weekly = prev.BlockedServices.Schedule.Clone()
|
||||
} else {
|
||||
weekly = schedule.EmptyWeekly()
|
||||
|
|
|
@ -49,7 +49,7 @@ func newPersistentClient(name string) (c *client.Persistent) {
|
|||
Name: name,
|
||||
UID: client.MustNewUID(),
|
||||
BlockedServices: &filtering.BlockedServices{
|
||||
Schedule: &schedule.Weekly{},
|
||||
Schedule: schedule.EmptyWeekly(),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue