This commit is contained in:
chrislu 2022-08-23 01:52:29 -07:00
parent bf88006037
commit f0b4a7659a

View file

@ -83,7 +83,10 @@ func (ce *CommandEnv) confirmIsLocked(args []string) error {
} }
func (ce *CommandEnv) isLocked() bool { func (ce *CommandEnv) isLocked() bool {
return ce != nil && ce.locker.IsLocked() if ce == nil {
return true
}
return ce.locker.IsLocked()
} }
func (ce *CommandEnv) checkDirectory(path string) error { func (ce *CommandEnv) checkDirectory(path string) error {