Skip to content

Commit a17ea4b

Browse files
authored
Merge pull request #6 from thaJeztah/fix_todo
assert interface for nosysFileInfo
2 parents 78ee240 + 6b901cc commit a17ea4b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: archive.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,7 @@ func (compression *Compression) Extension() string {
476476
}
477477

478478
// assert that we implement [tar.FileInfoNames].
479-
//
480-
// TODO(thaJeztah): disabled to allow compiling on < go1.23. un-comment once we drop support for older versions of go.
481-
// var _ tar.FileInfoNames = (*nosysFileInfo)(nil)
479+
var _ tar.FileInfoNames = (*nosysFileInfo)(nil)
482480

483481
// nosysFileInfo hides the system-dependent info of the wrapped FileInfo to
484482
// prevent tar.FileInfoHeader from introspecting it and potentially calling into

0 commit comments

Comments
 (0)