Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
noyshabtay committed May 28, 2024
2 parents 87e037a + a2b3529 commit f35fee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion unarchive/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var supportedArchives = []archiver.ExtensionChecker{
&archiver.Xz{}, &archiver.Zstd{},
}

func (u *Unarchiver) IsSupportedArchive(filePath string) bool {
func IsSupportedArchive(filePath string) bool {
archive, err := archiver.ByExtension(filePath)
if err != nil {
return false
Expand Down
2 changes: 1 addition & 1 deletion unarchive/archive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@ func TestUnarchiveDotDir(t *testing.T) {

func runUnarchive(t *testing.T, uarchiver Unarchiver, archiveFileName, sourceDir, targetDir string) error {
archivePath := filepath.Join("testdata", sourceDir, archiveFileName)
assert.True(t, uarchiver.IsSupportedArchive(archivePath))
assert.True(t, IsSupportedArchive(archivePath))
return uarchiver.Unarchive(filepath.Join("testdata", sourceDir, archiveFileName), archiveFileName, targetDir)
}

0 comments on commit f35fee9

Please sign in to comment.