mirror of
https://github.com/safing/portmaster
synced 2025-04-25 13:29:10 +00:00
Clean up ui package
This commit is contained in:
parent
90c89eb012
commit
eea1ec6a56
1 changed files with 4 additions and 5 deletions
|
@ -14,14 +14,13 @@ import (
|
|||
|
||||
"github.com/safing/portbase/api"
|
||||
"github.com/safing/portbase/log"
|
||||
"github.com/safing/portbase/updater"
|
||||
"github.com/safing/portmaster/updates"
|
||||
)
|
||||
|
||||
var (
|
||||
apps = make(map[string]*resources.BundleSequence)
|
||||
appsLock sync.RWMutex
|
||||
assets *resources.BundleSequence
|
||||
assetsLock sync.RWMutex
|
||||
apps = make(map[string]*resources.BundleSequence)
|
||||
appsLock sync.RWMutex
|
||||
)
|
||||
|
||||
func registerRoutes() error {
|
||||
|
@ -66,7 +65,7 @@ func ServeBundle(defaultModuleName string) func(w http.ResponseWriter, r *http.R
|
|||
// get file from update system
|
||||
zipFile, err := updates.GetFile(fmt.Sprintf("ui/modules/%s.zip", moduleName))
|
||||
if err != nil {
|
||||
if err == updates.ErrNotFound {
|
||||
if err == updater.ErrNotFound {
|
||||
log.Tracef("ui: requested module %s does not exist", moduleName)
|
||||
http.Error(w, err.Error(), http.StatusNotFound)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue