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:
+1
-1
@@ -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, "*") {
|
||||
|
||||
Reference in New Issue
Block a user