diff options
author | Michael Li <alimy@gility.net> | 2022-03-17 14:05:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-17 14:05:09 +0800 |
commit | 32c454ba5faea9dc4236c12e28e0b65f01117cc1 (patch) | |
tree | 1eea30a83f78b311983924ba3bab00884633f508 /internal/assets/assets.go | |
parent | 39f64a1371cdb01e02aeeb04839d2689052ae1d3 (diff) |
assets: convert usage of go-bindata to Go embed (#6851)
Co-authored-by: Joe Chen <jc@unknwon.io>
Diffstat (limited to 'internal/assets/assets.go')
-rw-r--r-- | internal/assets/assets.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/internal/assets/assets.go b/internal/assets/assets.go deleted file mode 100644 index 47a5936d..00000000 --- a/internal/assets/assets.go +++ /dev/null @@ -1,13 +0,0 @@ -package assets - -import ( - "strings" -) - -// IsErrNotFound returns true if the error is asset not found. -func IsErrNotFound(err error) bool { - if err == nil { - return false - } - return strings.Contains(err.Error(), "not found") -} |