mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-24 15:00:43 +02:00
refactoring
This commit is contained in:
1 parent
7ea2c24c5d
commit
57e7582c36
2 files changed
+13
-8
No files matched your search
@@ -73,7 +73,7 @@ func (ce *CommandEnv) isDirectory(path string) bool {
|
||||
|
||||
func (ce *CommandEnv) confirmIsLocked(args []string) error {
|
||||
|
||||
if ce.locker.IsLocking() {
|
||||
if ce.locker.IsLocked() {
|
||||
return nil
|
||||
}
|
||||
ce.locker.SetMessage(fmt.Sprintf("%v", args))
|
||||
@@ -82,6 +82,10 @@ func (ce *CommandEnv) confirmIsLocked(args []string) error {
|
||||
|
||||
}
|
||||
|
||||
func (ce *CommandEnv) isLocked() bool {
|
||||
return ce.locker.IsLocked()
|
||||
}
|
||||
|
||||
func (ce *CommandEnv) checkDirectory(path string) error {
|
||||
|
||||
dir, name := util.FullPath(path).DirAndName()
|
||||
|
||||
Reference in new issue
Block a user