mirror of
https://github.com/gogs/gogs.git
synced 2025-05-09 00:51:02 +00:00
* fixed private repositories are hidden in the organization's view * use go-bindata integrate public and templates files to gogs binary * optimize Dockerfile don't COPY public and templates files * use kevinburke's go-bindata to generate assets code * reset develepment as default run mode in configure file * optimize generated assets code relayout and help function * fixed code format * Update conf/app.ini * assets: add LICENSE headers * Some housekeeping * assets/public: simplify code logic * assets/templates: simplify code logic * cmd/web: more concise variable names * Minor changes * Add custom public and templates support back Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
14 lines
227 B
Go
14 lines
227 B
Go
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")
|
|
}
|