aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_remote_mount.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-08-15 12:09:54 -0700
committerChris Lu <chris.lu@gmail.com>2021-08-15 12:09:54 -0700
commita539d6489639217c1b2fded6ff7238b2d5e7b5da (patch)
tree8ba759ebc75b6da4706d93849eb807d75892238d /weed/shell/command_remote_mount.go
parent8f7d2d317f7a5b30068e429adcdb9e00bc01d0e4 (diff)
downloadseaweedfs-a539d6489639217c1b2fded6ff7238b2d5e7b5da.tar.xz
seaweedfs-a539d6489639217c1b2fded6ff7238b2d5e7b5da.zip
refactor
Diffstat (limited to 'weed/shell/command_remote_mount.go')
-rw-r--r--weed/shell/command_remote_mount.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/shell/command_remote_mount.go b/weed/shell/command_remote_mount.go
index 077c64e94..f675d706e 100644
--- a/weed/shell/command_remote_mount.go
+++ b/weed/shell/command_remote_mount.go
@@ -95,6 +95,9 @@ func listExistingRemoteStorageMounts(commandEnv *CommandEnv, writer io.Writer) (
}
func jsonPrintln(writer io.Writer, message proto.Message) error {
+ if message == nil {
+ return nil
+ }
m := jsonpb.Marshaler{
EmitDefaults: false,
Indent: " ",