From ab7148b1ec552917238a9a5bb1b1882b14288e84 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Mon, 7 Feb 2022 22:15:04 -0800 Subject: [PATCH] simple/remove-redundant-comment --- controllers/idManager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/idManager.go b/controllers/idManager.go index 1271c60..ef59f6b 100644 --- a/controllers/idManager.go +++ b/controllers/idManager.go @@ -40,7 +40,7 @@ func ValidatePEN(pen string) bool { // true: valid pen, false: pen already in us var foundID models.Id err := studentCollection.FindOne(ctx, bson.M{"schooldata.pen": pen}).Decode(&foundID) cancel() - if err != nil { // If there is no id found create new ID object to be stored and return true (unless insert error then try again) + if err != nil { return true } return false