Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
rokath committed Oct 4, 2024
1 parent 774e5aa commit bbd3806
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/id/cachedInsert.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ func (p *idData) triceIDInsertion(w io.Writer, fSys *afero.Afero, path string, f

// remove first colon, if exists (Windows)
before, after, _ := strings.Cut(fullPath, ":")
if UserHomeDir != os.UserHomeDir() {
home, _ := os.UserHomeDir()
if UserHomeDir != home {
before = "" // Throw away windows drive letter, when running tests with afero file system.
}
fullPath = before + after
Expand Down

0 comments on commit bbd3806

Please sign in to comment.