mirror of https://github.com/perkeep/perkeep.git
simplify deref expression
Change-Id: I1738c7c47e79b460f3c13626b1af9e96eb26f73f
This commit is contained in:
parent
f70cbb4c05
commit
87059405ea
|
@ -281,7 +281,7 @@ func main() {
|
|||
|
||||
ws := webserver.New()
|
||||
baseURL := config.RequiredString("baseURL")
|
||||
listen := *(webserver.Listen)
|
||||
listen := *webserver.Listen
|
||||
if listen == "" {
|
||||
// if command line was empty, use value in config
|
||||
listen = strings.TrimLeft(baseURL, "http://")
|
||||
|
|
Loading…
Reference in New Issue