fix: revert back to only passing the network id if its set, due to dart bug being fixed

This commit is contained in:
Derrick Hammer 2024-01-09 10:39:58 -05:00
parent 8281729888
commit 13be047bf8
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 4 deletions

View File

@ -56,11 +56,12 @@ func (h HandshakeOpen) EncodeMsgpack(enc *msgpack.Encoder) error {
return err return err
} }
err = enc.EncodeString(h.networkId) if h.networkId != "" {
if err != nil { err = enc.EncodeString(h.networkId)
return err if err != nil {
return err
}
} }
return nil return nil
} }