Browse Source

fix: TestCommandEcBalanceSmall Unit test fails when CommandEnv is nil (#3497)

pull/3499/head
famosss 2 years ago
committed by GitHub
parent
commit
911475526c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      weed/shell/commands.go

2
weed/shell/commands.go

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

Loading…
Cancel
Save