Skip to content

Commit ca47b4c

Browse files
quasilytecalmh
authored andcommitted
cmd/syncthing: Correct strings.HasPrefix args order (#5498)
1 parent c2ddc83 commit ca47b4c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/syncthing/monitor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,10 @@ func (f *autoclosedFile) closerLoop() {
418418
func childEnv() []string {
419419
var env []string
420420
for _, str := range os.Environ() {
421-
if strings.HasPrefix("STNORESTART=", str) {
421+
if strings.HasPrefix(str, "STNORESTART=") {
422422
continue
423423
}
424-
if strings.HasPrefix("STMONITORED=", str) {
424+
if strings.HasPrefix(str, "STMONITORED=") {
425425
continue
426426
}
427427
env = append(env, str)

0 commit comments

Comments
 (0)