Skip to content

Commit 1ca5bab

Browse files
Tweaks
1 parent 0f31aeb commit 1ca5bab

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

internal/colour/colour.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ func Red(text string) string {
2929
}
3030

3131
// sprint returns a string with a given colour and the reset code.
32-
//
33-
// It handles checking for NO_COLOR and FORCE_COLOR.
3432
func sprint(code, text string) string {
3533
return code + text + codeReset
3634
}

snapshot_test.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,6 @@ func makeSnapshot(t *testing.T, shotter *snapshot.Shotter, content string) {
162162

163163
path := shotter.Path()
164164

165-
// If it already exists, no sense recreating it every time
166-
_, err := os.Stat(path)
167-
exists := err == nil
168-
if exists {
169-
return
170-
}
171-
172165
// Because subtests insert a '/' i.e. TestSomething/subtest1, we need to make
173166
// all directories along that path so find the last dir along the path
174167
// and use that in the call to MkDirAll

0 commit comments

Comments
 (0)