Skip to content

Commit

Permalink
missed small thing
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Feb 18, 2022
1 parent 5848867 commit f4b5e94
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions executor/linux/step.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,11 +472,7 @@ func getSecretValues(ctn *pipeline.Container) []string {
// handle multi line secrets from files
s = strings.ReplaceAll(s, "\n", " ")

// drop any trailing spaces
if strings.HasSuffix(s, " ") {
s = s[:(len(s) - 1)]
}
secretValues = append(secretValues, s)
secretValues = append(secretValues, strings.TrimSuffix(s, " "))
}
return secretValues
}

0 comments on commit f4b5e94

Please sign in to comment.