Skip to content

Commit

Permalink
Add comment to return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
tsyber1an committed Oct 11, 2018
1 parent b311557 commit 0464c2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pry/io_js.go
Expand Up @@ -48,8 +48,7 @@ func NewHistory() (*BrowserHistory, error) {
func (bh *BrowserHistory) Load() error {
hist := js.Global().Get("localStorage").Get("history")
if hist.Type() == js.TypeUndefined {
// dirty because it is actually an error
return nil
return nil // nothing to unmarashal
}
var records []string
if err := json.Unmarshal([]byte(hist.String()), &records); err != nil {
Expand Down

0 comments on commit 0464c2c

Please sign in to comment.