Skip to content

Commit 8d60afa

Browse files
committed
assert interface for nosysFileInfo
As the module now has go1.23 as minimum, we can enable this. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent a36cd06 commit 8d60afa

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

archive.go

Lines changed: 1 addition & 3 deletions
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)