fix: removing redundancy

This commit is contained in:
Isaque Veras
2023-06-11 10:48:46 -03:00
committed by fiatjaf_
parent ee8f58360f
commit 58d56abe05
10 changed files with 19 additions and 46 deletions
+1 -2
View File
@@ -22,8 +22,7 @@ func ParseMetadata(event Event) (*ProfileMetadata, error) {
}
var meta ProfileMetadata
err := json.Unmarshal([]byte(event.Content), &meta)
if err != nil {
if err := json.Unmarshal([]byte(event.Content), &meta); err != nil {
cont := event.Content
if len(cont) > 100 {
cont = cont[0:99]