mirror of https://github.com/perkeep/perkeep.git
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:
parent
68cd59797a
commit
ca25042eb4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue