This commit is contained in:
Daniel 2025-02-05 11:28:01 +08:00
parent e5867b0c2e
commit 737c3f6559
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -20,7 +20,6 @@ import (
"bytes"
"errors"
"fmt"
"io"
"io/fs"
"mime"
"net/http"
@ -379,7 +378,7 @@ func GetAssetAbsPath(relativePath string) (ret string, err error) {
if p := filepath.ToSlash(path); strings.HasSuffix(p, relativePath) {
if gulu.File.IsExist(path) {
ret = path
return io.EOF
return fs.SkipAll
}
}
return nil
@ -393,7 +392,6 @@ func GetAssetAbsPath(relativePath string) (ret string, err error) {
return
}
}
return "", errors.New(fmt.Sprintf(Conf.Language(12), relativePath))
}