pkg/serverinit: remove useless code

The bit removed is already done right before by osutil.Username(). Plus
it wasn't finished as the envVar wasn't even used in a Getenv call.

Change-Id: Ic75853ad883e7acad4347e7f2d8851dc470b5bbf
This commit is contained in:
mpl 2017-06-06 00:11:21 +02:00
parent 68cd59797a
commit ca25042eb4
1 changed files with 0 additions and 5 deletions

View File

@ -25,7 +25,6 @@ import (
"os"
"path"
"path/filepath"
"runtime"
"strconv"
"strings"
@ -103,10 +102,6 @@ func (b *lowBuilder) dbName(of string) string {
}
username := osutil.Username()
if username == "" {
envVar := "USER"
if runtime.GOOS == "windows" {
envVar += "NAME"
}
return "camlistore_index"
}
return "camli" + username