cmd/syncthing: Correct strings.HasPrefix args order (#5498)

This commit is contained in:
Iskander (Alex) Sharipov 2019-02-02 14:18:19 +03:00 committed by Jakob Borg
parent c2ddc83509
commit ca47b4c218

View File

@ -418,10 +418,10 @@ func (f *autoclosedFile) closerLoop() {
func childEnv() []string {
var env []string
for _, str := range os.Environ() {
if strings.HasPrefix("STNORESTART=", str) {
if strings.HasPrefix(str, "STNORESTART=") {
continue
}
if strings.HasPrefix("STMONITORED=", str) {
if strings.HasPrefix(str, "STMONITORED=") {
continue
}
env = append(env, str)