Fixed errcheck linter complaints

This commit is contained in:
2019-06-05 15:45:54 +09:00
parent 190a85fe08
commit 940e949a30
15 changed files with 112 additions and 33 deletions

View File

@ -62,7 +62,13 @@ func process(character *arn.Character) {
return
}
character.SetImageBytes(buffer.Bytes())
err = character.SetImageBytes(buffer.Bytes())
if err != nil {
color.Red(err.Error())
return
}
character.Save()
}