Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cmd/syncthing: Correct strings.HasPrefix args order (#5498)
  • Loading branch information
quasilyte authored and calmh committed Feb 2, 2019
1 parent c2ddc83 commit ca47b4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/syncthing/monitor.go
Expand Up @@ -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)
Expand Down

0 comments on commit ca47b4c

Please sign in to comment.