Skip to content

Commit

Permalink
Merge pull request xmppo#56 from dullgiulio/govet
Browse files Browse the repository at this point in the history
Remove unreacheable panics
  • Loading branch information
mattn committed May 22, 2015
2 parents b5c8af1 + 5f7c3b1 commit 222c8f8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions xmpp.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,6 @@ func (c *Client) Recv() (stanza interface{}, err error) {
return Presence{v.From, v.To, v.Type, v.Show}, nil
}
}
panic("unreachable")
}

// Send sends the message wrapped inside an XMPP message stanza body.
Expand Down Expand Up @@ -761,7 +760,6 @@ func nextStart(p *xml.Decoder) (xml.StartElement, error) {
return t, nil
}
}
panic("unreachable")
}

// Scan XML token stream for next element and save into val.
Expand Down

0 comments on commit 222c8f8

Please sign in to comment.