1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-03 00:57:52 +02:00

Fix warning QF1004: could use strings.ReplaceAll instead

This commit is contained in:
Stefan Haller
2025-06-20 19:57:03 +02:00
parent 4604227238
commit c7d0aaa786
7 changed files with 12 additions and 12 deletions

View File

@ -14,12 +14,12 @@ import (
"github.com/stretchr/testify/assert"
)
var reflogOutput = strings.Replace(`c3c4b66b64c97ffeecde|1643150483|checkout: moving from A to B|51baa8c1
var reflogOutput = strings.ReplaceAll(`c3c4b66b64c97ffeecde|1643150483|checkout: moving from A to B|51baa8c1
c3c4b66b64c97ffeecde|1643150483|checkout: moving from B to A|51baa8c1
c3c4b66b64c97ffeecde|1643150483|checkout: moving from A to B|51baa8c1
c3c4b66b64c97ffeecde|1643150483|checkout: moving from master to A|51baa8c1
f4ddf2f0d4be4ccc7efa|1643149435|checkout: moving from A to master|51baa8c1
`, "|", "\x00", -1)
`, "|", "\x00")
func TestGetReflogCommits(t *testing.T) {
type scenario struct {