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