mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 07:12:27 +00:00
cmd/syncthing: Correct strings.HasPrefix args order (#5498)
This commit is contained in:
parent
c2ddc83509
commit
ca47b4c218
@ -418,10 +418,10 @@ func (f *autoclosedFile) closerLoop() {
|
|||||||
func childEnv() []string {
|
func childEnv() []string {
|
||||||
var env []string
|
var env []string
|
||||||
for _, str := range os.Environ() {
|
for _, str := range os.Environ() {
|
||||||
if strings.HasPrefix("STNORESTART=", str) {
|
if strings.HasPrefix(str, "STNORESTART=") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if strings.HasPrefix("STMONITORED=", str) {
|
if strings.HasPrefix(str, "STMONITORED=") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
env = append(env, str)
|
env = append(env, str)
|
||||||
|
Loading…
Reference in New Issue
Block a user