Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
Signed-off-by: Lixia (Sylvia) Lei <[email protected]>
  • Loading branch information
Wwwsylvia committed Jan 17, 2025
1 parent 16cc1d8 commit e8b9cce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/fs/tarfs/tarfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ func (tfs *TarFS) indexEntries() error {
return err
}

cleanPath := path.Clean(header.Name)
tfs.entries[cleanPath] = &entry{
name := path.Clean(header.Name)
tfs.entries[name] = &entry{
header: header,
pos: pos - blockSize,
}
Expand Down

0 comments on commit e8b9cce

Please sign in to comment.