Permalink
Browse files

Merge pull request #27 from specode/master

fix bug
  • Loading branch information...
mattn committed Nov 5, 2013
2 parents bb0e2d8 + 8a80c8a commit 8da045a9e5cb08643f7ebd04028a4f1e16b26226
Showing with 1 addition and 2 deletions.
  1. +1 −2 xmpp.go
View
@@ -23,7 +23,6 @@ import (
"errors"
"fmt"
"io"
- "log"
"math/big"
"net"
"net/http"
@@ -539,7 +538,7 @@ func nextStart(p *xml.Decoder) (xml.StartElement, error) {
for {
t, err := p.Token()
if err != nil && err != io.EOF {
- return nil, err
+ return xml.StartElement{}, err
}
switch t := t.(type) {
case xml.StartElement:

0 comments on commit 8da045a

Please sign in to comment.