Skip to content

Commit

Permalink
golint
Browse files Browse the repository at this point in the history
  • Loading branch information
jalvz committed Jun 9, 2020
1 parent 160f808 commit 9cde312
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/modeldecoder/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ func decodePage(raw common.MapStr, hasShortFieldNames bool, err error) (*model.P
page := &model.Page{
Referer: decoder.StringPtr(pageInput, fieldName("referer")),
}
if pageUrl := decoder.StringPtr(pageInput, fieldName("url")); pageUrl != nil {
page.URL = model.ParseURL(*pageUrl, "")
if pageURL := decoder.StringPtr(pageInput, fieldName("url")); pageURL != nil {
page.URL = model.ParseURL(*pageURL, "")
}
return page, decoder.Err
}
Expand Down

0 comments on commit 9cde312

Please sign in to comment.