diff options
| author | chrislusf <chris.lu@gmail.com> | 2015-03-10 00:20:31 -0700 |
|---|---|---|
| committer | chrislusf <chris.lu@gmail.com> | 2015-03-10 00:20:34 -0700 |
| commit | b07d81fb088638909ace217f4f2eb7927f094682 (patch) | |
| tree | 3d01c017c05e82a78094fcbc5cf988a6cd6509d1 /go/weed/server.go | |
| parent | b4cb8bfd27687cb1bb95f63bc953d02116d02016 (diff) | |
| download | seaweedfs-b07d81fb088638909ace217f4f2eb7927f094682.tar.xz seaweedfs-b07d81fb088638909ace217f4f2eb7927f094682.zip | |
follow golint suggestions
Diffstat (limited to 'go/weed/server.go')
| -rw-r--r-- | go/weed/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/weed/server.go b/go/weed/server.go index dd0355d55..48612a27b 100644 --- a/go/weed/server.go +++ b/go/weed/server.go @@ -120,7 +120,7 @@ func runServer(cmd *Command, args []string) bool { folders := strings.Split(*volumeDataFolders, ",") maxCountStrings := strings.Split(*volumeMaxDataVolumeCounts, ",") - maxCounts := make([]int, 0) + var maxCounts []int for _, maxString := range maxCountStrings { if max, e := strconv.Atoi(maxString); e == nil { maxCounts = append(maxCounts, max) |
