aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/filer_replication.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/filer_replication.go b/weed/command/filer_replication.go
index 1f239a981..9f8f4442a 100644
--- a/weed/command/filer_replication.go
+++ b/weed/command/filer_replication.go
@@ -52,11 +52,11 @@ func runFilerReplicate(cmd *Command, args []string) bool {
glog.Errorf("receive %s: %+v", key, err)
continue
}
- if m.OldEntry!=nil&&m.NewEntry==nil{
+ if m.OldEntry != nil && m.NewEntry == nil {
glog.V(1).Infof("delete: %s", key)
- }else if m.OldEntry==nil&&m.NewEntry!=nil{
+ } else if m.OldEntry == nil && m.NewEntry != nil {
glog.V(1).Infof(" add: %s", key)
- }else{
+ } else {
glog.V(1).Infof("modify: %s", key)
}
if err = replicator.Replicate(key, m); err != nil {