simple/remove-redundant-comment
This commit is contained in:
1 parent
d4d4f65385
commit
ab7148b1ec
1 file changed
+1
-1
@@ -40,7 +40,7 @@ func ValidatePEN(pen string) bool { // true: valid pen, false: pen already in us
|
|||||||
var foundID models.Id
|
var foundID models.Id
|
||||||
err := studentCollection.FindOne(ctx, bson.M{"schooldata.pen": pen}).Decode(&foundID)
|
err := studentCollection.FindOne(ctx, bson.M{"schooldata.pen": pen}).Decode(&foundID)
|
||||||
cancel()
|
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 true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in new issue
Block a user