add err checking for places where an error variable was assigned but not checked
This commit is contained in:
@@ -79,6 +79,9 @@ func (self *Visitor) md2html(arg map[string]string) error {
|
||||
req.Header.Set("Authorization", "token "+token)
|
||||
//
|
||||
resp, err := client.Do(req)
|
||||
if err!=nil {
|
||||
fmt.Println("err:",err)
|
||||
}
|
||||
|
||||
defer resp.Body.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user