mirror of https://github.com/perkeep/perkeep.git
style nit. use composite literal.
Change-Id: I7b70ee26c3ea799ad601d72cb1414a4a98992cbc
This commit is contained in:
parent
618efee2f5
commit
70c273ef93
|
@ -74,10 +74,11 @@ func init() {
|
|||
}
|
||||
|
||||
func newUiFromConfig(ld blobserver.Loader, conf jsonconfig.Obj) (h http.Handler, err error) {
|
||||
ui := &UIHandler{}
|
||||
ui.BlobRoot = conf.OptionalString("blobRoot", "")
|
||||
ui.SearchRoot = conf.OptionalString("searchRoot", "")
|
||||
ui.JSONSignRoot = conf.OptionalString("jsonSignRoot", "")
|
||||
ui := &UIHandler{
|
||||
BlobRoot: conf.OptionalString("blobRoot", ""),
|
||||
SearchRoot: conf.OptionalString("searchRoot", ""),
|
||||
JSONSignRoot: conf.OptionalString("jsonSignRoot", ""),
|
||||
}
|
||||
pubRoots := conf.OptionalList("publishRoots")
|
||||
cachePrefix := conf.OptionalString("cache", "")
|
||||
scType := conf.OptionalString("scaledImage", "")
|
||||
|
|
Loading…
Reference in New Issue