Browse Source
fix: TestCommandEcBalanceSmall Unit test fails when CommandEnv is nil (#3497)
pull/3499/head
famosss
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 { |
|
|
|