From 150d23293fc7d8d69963268908530e577c554f08 Mon Sep 17 00:00:00 2001 From: Robi Nino Date: Mon, 20 May 2024 14:33:25 +0300 Subject: [PATCH] fix linter --- utils/masking.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/masking.go b/utils/masking.go index 0f5f372f..8921a1fc 100644 --- a/utils/masking.go +++ b/utils/masking.go @@ -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 }