Browse Source

go fmt

pull/2252/head
Chris Lu 3 years ago
parent
commit
402315f117
  1. 2
      weed/shell/command_remote_cache.go
  2. 4
      weed/shell/command_remote_uncache.go

2
weed/shell/command_remote_cache.go

@ -94,7 +94,7 @@ func recursivelyTraverseDirectory(filerClient filer_pb.FilerClient, dirPath util
if err := recursivelyTraverseDirectory(filerClient, subDir, visitEntry); err != nil { if err := recursivelyTraverseDirectory(filerClient, subDir, visitEntry); err != nil {
return err return err
} }
}else {
} else {
if !visitEntry(dirPath, entry) { if !visitEntry(dirPath, entry) {
return nil return nil
} }

4
weed/shell/command_remote_uncache.go

@ -83,8 +83,8 @@ func (c *commandRemoteUncache) uncacheContentData(commandEnv *CommandEnv, writer
err := commandEnv.WithFilerClient(func(client filer_pb.SeaweedFilerClient) error { err := commandEnv.WithFilerClient(func(client filer_pb.SeaweedFilerClient) error {
_, updateErr := client.UpdateEntry(context.Background(), &filer_pb.UpdateEntryRequest{ _, updateErr := client.UpdateEntry(context.Background(), &filer_pb.UpdateEntryRequest{
Directory: string(dir),
Entry: entry,
Directory: string(dir),
Entry: entry,
}) })
return updateErr return updateErr
}) })

Loading…
Cancel
Save