Skip to content

Commit 5720fda

Browse files
committed
style: apply gofmt
1 parent e512816 commit 5720fda

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,5 @@ Thumbs.db
4141
.gocache/
4242
.gomodcache/
4343
.gopath/
44+
.golangci-cache/
4445
.tmp_repro/

cmd/wtp/hook_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func TestHookScripts_HandleEdgeCases(t *testing.T) {
112112
name: "bash hook supports no-arg cd",
113113
shell: "bash",
114114
requiredLogic: []string{
115-
"if [[ -z \"$2\" ]]", // No-arg branch
115+
"if [[ -z \"$2\" ]]", // No-arg branch
116116
"target_dir=$(command wtp cd", // Uses `wtp cd` default behavior
117117
"target_dir=$(command wtp cd \"$2", // Uses explicit worktree name when present
118118
},
@@ -126,9 +126,9 @@ func TestHookScripts_HandleEdgeCases(t *testing.T) {
126126
shell: "fish",
127127
requiredLogic: []string{
128128
"if test -z \"$argv[2]\"", // No-arg branch
129-
"set -l target_dir (command wtp cd", // Uses `wtp cd` default behavior
130-
"command wtp cd $argv[2]", // Uses explicit worktree name when present
131-
"cd \"$target_dir\"", // Handles spaces safely
129+
"set -l target_dir (command wtp cd", // Uses `wtp cd` default behavior
130+
"command wtp cd $argv[2]", // Uses explicit worktree name when present
131+
"cd \"$target_dir\"", // Handles spaces safely
132132
},
133133
notContains: []string{
134134
"Usage: wtp cd <worktree>",

0 commit comments

Comments
 (0)