Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNino committed May 20, 2024
1 parent c08b473 commit 150d232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/masking.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ const CredentialsInUrlRegexp = `(?:http|https|git)://.+@`
// Remove the credentials information from the line.
func RemoveCredentials(pattern *gofrogcmd.CmdOutputPattern) (string, error) {
splitResult := strings.Split(pattern.MatchedResults[0], "//")
return strings.Replace(pattern.Line, pattern.MatchedResults[0], splitResult[0]+"//***@", -1), nil
return strings.ReplaceAll(pattern.Line, pattern.MatchedResults[0], splitResult[0]+"//***@"), nil
}

0 comments on commit 150d232

Please sign in to comment.