Files
weave-scope/prog/static.go
Elena Morozova c5d38f5c46 Fix golint if/else
if block ends with a return statement, so drop this else and outdent its block
2017-10-13 16:18:17 -07:00

17 lines
287 B
Go

package main
import (
"net/http"
"github.com/weaveworks/scope/prog/externalui"
"github.com/weaveworks/scope/prog/staticui"
)
// GetFS obtains the UI code
func GetFS(useExternal bool) http.FileSystem {
if useExternal {
return externalui.FS(false)
}
return staticui.FS(false)
}