linter: add metalinter to Makefile & apply some fixes

This commit is contained in:
Zach Ramsay
2017-09-22 13:31:01 -04:00
parent 0418d32276
commit fe66a683bc
13 changed files with 65 additions and 131 deletions

View File

@ -22,7 +22,7 @@ func EncodeArmor(blockType string, headers map[string]string, data []byte) strin
if err != nil {
PanicSanity("Error encoding ascii armor: " + err.Error())
}
return string(buf.Bytes())
return buf.String()
}
func DecodeArmor(armorStr string) (blockType string, headers map[string]string, data []byte, err error) {