move git stuff out of main
This commit is contained in:
parent
bfb79c3f3c
commit
a021fab543
5 changed files with 250 additions and 230 deletions
|
|
@ -80,6 +80,8 @@ func readBody(r io.ReadCloser, i interface{}) (body []byte, err error) {
|
|||
if debug {
|
||||
log.Printf("debug: %s", string(body))
|
||||
}
|
||||
err = json.Unmarshal(body, i)
|
||||
if i != nil {
|
||||
err = json.Unmarshal(body, i)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue