Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
FollowTheProcess committed Nov 17, 2024
1 parent 0f31aeb commit 1ca5bab
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions internal/colour/colour.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ func Red(text string) string {
}

// sprint returns a string with a given colour and the reset code.
//
// It handles checking for NO_COLOR and FORCE_COLOR.
func sprint(code, text string) string {
return code + text + codeReset
}
7 changes: 0 additions & 7 deletions snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,6 @@ func makeSnapshot(t *testing.T, shotter *snapshot.Shotter, content string) {

path := shotter.Path()

// If it already exists, no sense recreating it every time
_, err := os.Stat(path)
exists := err == nil
if exists {
return
}

// Because subtests insert a '/' i.e. TestSomething/subtest1, we need to make
// all directories along that path so find the last dir along the path
// and use that in the call to MkDirAll
Expand Down

0 comments on commit 1ca5bab

Please sign in to comment.