// Don't warn if the user or job isn't there
Don't warn if the user or job isn't there
// Don ' t warn if the user or job isn ' t there
func (sched *Scheduled) RemoveUserCommand(username string, jobid int) int {
	sched.mux.Lock()
	defer sched.mux.Unlock()
	user := sched.findUser(username)
	_, ok := user.Commands[jobid]
	if ok {
		user.Commands[jobid] = nil
	}
	sched.store()
	return jobid
}
func ( sched * Scheduled ) RemoveUserCommand ( username string , jobid int ) int { sched . mux . Lock ( ) defer sched . mux . Unlock ( ) user := sched . findUser ( username ) _ , ok := user . Commands [ jobid ] if ok { user . Commands [ jobid ] = nil } sched . store ( ) return jobid }
Don't warn if the user or job isn't there
Don ' t warn if the user or job isn ' t there
// Persist, no need for a lock, just one process has access