Fix go vet complaint.

pull/79/head
Everton Marques 7 years ago
parent 4d5bc7f55f
commit 5a78cc8930

@ -1187,7 +1187,7 @@ func (a *App) ParseArgs(g *gocui.Gui, args []string) error {
if err != nil || timeout <= 0 { if err != nil || timeout <= 0 {
return errors.New("Invalid timeout value") return errors.New("Invalid timeout value")
} }
a.config.General.Timeout = config.Duration{time.Duration(timeout) * time.Millisecond} a.config.General.Timeout = config.Duration{Duration: time.Duration(timeout) * time.Millisecond}
case "--compressed": case "--compressed":
vh, _ := g.View(REQUEST_HEADERS_VIEW) vh, _ := g.View(REQUEST_HEADERS_VIEW)
if strings.Index(getViewValue(g, REQUEST_HEADERS_VIEW), "Accept-Encoding") == -1 { if strings.Index(getViewValue(g, REQUEST_HEADERS_VIEW), "Accept-Encoding") == -1 {

Loading…
Cancel
Save