mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-08 19:22:57 +00:00
add error check
This commit is contained in:
parent
654332673c
commit
cbe4fe530d
@ -80,10 +80,10 @@ func GetPath() string {
|
|||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "darwin", "windows":
|
case "darwin", "windows":
|
||||||
zp := extractor.NewZip()
|
zp := extractor.NewZip()
|
||||||
zp.Extract(tempfile, temp)
|
err = zp.Extract(tempfile, temp)
|
||||||
default:
|
default:
|
||||||
gz := extractor.NewTgz()
|
gz := extractor.NewTgz()
|
||||||
gz.Extract(tempfile, temp)
|
err = gz.Extract(tempfile, temp)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user