From a87f9402579141f5385300cd6cb468b943ae9d44 Mon Sep 17 00:00:00 2001 From: Arnab Ghose Date: Sat, 25 Nov 2023 10:11:30 +0530 Subject: [PATCH] lint fix: simplified range expression in isValidJSONDocument function --- x/ssi/keeper/msg_server_schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/ssi/keeper/msg_server_schema.go b/x/ssi/keeper/msg_server_schema.go index 1bbf2d1..86f7f1e 100644 --- a/x/ssi/keeper/msg_server_schema.go +++ b/x/ssi/keeper/msg_server_schema.go @@ -114,7 +114,7 @@ func isValidJSONDocument(schemaProperty string) error { for attributeName, attributeObj := range schemaPropertyDocument { isTypeSubAttributePresent := false - for subAttributeName, _ := range attributeObj { + for subAttributeName := range attributeObj { if subAttributeName == "type" { isTypeSubAttributePresent = true } else if subAttributeName == "format" {