1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-10-23 17:48:30 +03:00

Cleanup: use nil for empty slice

This commit is contained in:
Stefan Haller
2025-07-27 18:38:53 +02:00
parent 26f2c0203b
commit 15f8ad31e0
2 changed files with 10 additions and 10 deletions

View File

@@ -86,7 +86,7 @@ func TestGetCommits(t *testing.T) {
Name: "better typing for rebase mode",
Status: models.StatusUnpushed,
Action: models.ActionNone,
Tags: []string{},
Tags: nil,
ExtraInfo: "(HEAD -> better-tests)",
AuthorName: "Jesse Duffield",
AuthorEmail: "jessedduffield@gmail.com",
@@ -100,7 +100,7 @@ func TestGetCommits(t *testing.T) {
Name: "fix logging",
Status: models.StatusPushed,
Action: models.ActionNone,
Tags: []string{},
Tags: nil,
ExtraInfo: "(origin/better-tests)",
AuthorName: "Jesse Duffield",
AuthorEmail: "jessedduffield@gmail.com",
@@ -128,7 +128,7 @@ func TestGetCommits(t *testing.T) {
Name: "WIP",
Status: models.StatusPushed,
Action: models.ActionNone,
Tags: []string{},
Tags: nil,
ExtraInfo: "",
AuthorName: "Jesse Duffield",
AuthorEmail: "jessedduffield@gmail.com",
@@ -142,7 +142,7 @@ func TestGetCommits(t *testing.T) {
Name: "WIP",
Status: models.StatusPushed,
Action: models.ActionNone,
Tags: []string{},
Tags: nil,
ExtraInfo: "",
AuthorName: "Jesse Duffield",
AuthorEmail: "jessedduffield@gmail.com",
@@ -156,7 +156,7 @@ func TestGetCommits(t *testing.T) {
Name: "WIP",
Status: models.StatusMerged,
Action: models.ActionNone,
Tags: []string{},
Tags: nil,
ExtraInfo: "",
AuthorName: "Jesse Duffield",
AuthorEmail: "jessedduffield@gmail.com",
@@ -170,7 +170,7 @@ func TestGetCommits(t *testing.T) {
Name: "WIP",
Status: models.StatusMerged,
Action: models.ActionNone,
Tags: []string{},
Tags: nil,
ExtraInfo: "",
AuthorName: "Jesse Duffield",
AuthorEmail: "jessedduffield@gmail.com",
@@ -184,7 +184,7 @@ func TestGetCommits(t *testing.T) {
Name: "refactoring the config struct",
Status: models.StatusMerged,
Action: models.ActionNone,
Tags: []string{},
Tags: nil,
ExtraInfo: "",
AuthorName: "Jesse Duffield",
AuthorEmail: "jessedduffield@gmail.com",
@@ -220,7 +220,7 @@ func TestGetCommits(t *testing.T) {
Name: "better typing for rebase mode",
Status: models.StatusUnpushed,
Action: models.ActionNone,
Tags: []string{},
Tags: nil,
ExtraInfo: "(HEAD -> better-tests)",
AuthorName: "Jesse Duffield",
AuthorEmail: "jessedduffield@gmail.com",
@@ -258,7 +258,7 @@ func TestGetCommits(t *testing.T) {
Name: "better typing for rebase mode",
Status: models.StatusUnpushed,
Action: models.ActionNone,
Tags: []string{},
Tags: nil,
ExtraInfo: "(HEAD -> better-tests)",
AuthorName: "Jesse Duffield",
AuthorEmail: "jessedduffield@gmail.com",