aboutsummaryrefslogtreecommitdiff
path: root/weed/shell
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-04-18 00:19:18 -0700
committerChris Lu <chris.lu@gmail.com>2019-04-18 00:19:18 -0700
commitb142f9f1d57cebd1445baed7ce7fc88bb0f450f0 (patch)
tree1b9576bf87ba0179a923203ad6df1692e97c2170 /weed/shell
parentb09e8dbb377562e6d61bf40b5dbadc3a3edd1360 (diff)
downloadseaweedfs-b142f9f1d57cebd1445baed7ce7fc88bb0f450f0.tar.xz
seaweedfs-b142f9f1d57cebd1445baed7ce7fc88bb0f450f0.zip
go fmt
Diffstat (limited to 'weed/shell')
-rw-r--r--weed/shell/command_fs_meta_load.go4
-rw-r--r--weed/shell/commands.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/weed/shell/command_fs_meta_load.go b/weed/shell/command_fs_meta_load.go
index 35fa632b0..0991c039c 100644
--- a/weed/shell/command_fs_meta_load.go
+++ b/weed/shell/command_fs_meta_load.go
@@ -56,7 +56,7 @@ func (c *commandFsMetaLoad) Do(args []string, commandEnv *commandEnv, writer io.
for {
if n, err := dst.Read(sizeBuf); n != 4 {
- if err == io.EOF{
+ if err == io.EOF {
return nil
}
return err
@@ -100,4 +100,4 @@ func (c *commandFsMetaLoad) Do(args []string, commandEnv *commandEnv, writer io.
}
return err
-} \ No newline at end of file
+}
diff --git a/weed/shell/commands.go b/weed/shell/commands.go
index 50b70498d..6fade6e9d 100644
--- a/weed/shell/commands.go
+++ b/weed/shell/commands.go
@@ -51,7 +51,7 @@ func (ce *commandEnv) parseUrl(input string) (filerServer string, filerPort int6
func (ce *commandEnv) isDirectory(ctx context.Context, filerServer string, filerPort int64, path string) bool {
- return ce.checkDirectory(ctx,filerServer,filerPort,path) == nil
+ return ce.checkDirectory(ctx, filerServer, filerPort, path) == nil
}