all: Simplify some method calls (#7499)

strings.Replace(a, b, c, -1) -> strings.ReplaceAll(a, b, c)

(Go 1.12) and who knows what was up with that dialQueue.Sort() thing.
This commit is contained in:
Jakob Borg
2021-03-17 23:12:26 +01:00
committed by GitHub
parent 960e850a78
commit 8ef504f745
10 changed files with 18 additions and 19 deletions
+1 -1
View File
@@ -692,7 +692,7 @@ func (m *model) UsageReportingStats(report *contract.Report, version int, previe
if strings.Contains(line, "**") {
report.IgnoreStats.DoubleStars++
// Remove not to trip up star checks.
line = strings.Replace(line, "**", "", -1)
line = strings.ReplaceAll(line, "**", "")
}
if strings.Contains(line, "*") {