Restore Go < 1.16 compatibility
This commit is contained in:
parent
51a0a27a6f
commit
b41681cbb7
1 changed files with 1 additions and 2 deletions
|
|
@ -4,7 +4,6 @@ import (
|
|||
"archive/zip"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/fs"
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
|
|
@ -56,6 +55,6 @@ func extractZipFile(zf *zip.File, dest string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
func isBinary(m fs.FileMode) bool {
|
||||
func isBinary(m os.FileMode) bool {
|
||||
return m&0111 != 0
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue