Skip to content
Snippets Groups Projects
Commit 36675782 authored by Jono Wenger's avatar Jono Wenger
Browse files

Fix marshal return

parent 98def1ae
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ func (c *Contact) GetFactList() *FactList {
}
func (c *Contact) Marshal() ([]byte, error) {
return c.c.Marshal()
return c.c.Marshal(), nil
}
/* FactList object*/
......
......@@ -219,11 +219,7 @@ func writeContact(c contact.Contact) {
if outfilePath == "" {
return
}
cBytes, err := c.Marshal()
if err != nil {
jww.FATAL.Panicf("%+v", err)
}
err = ioutil.WriteFile(outfilePath, cBytes, 0644)
err := ioutil.WriteFile(outfilePath, c.Marshal(), 0644)
if err != nil {
jww.FATAL.Panicf("%+v", err)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment