From 9d3775565d0a49eded03c13337b551d0e598bb86 Mon Sep 17 00:00:00 2001 From: Aleksandr S Date: Thu, 3 Mar 2022 17:10:19 +0300 Subject: [PATCH] use comment:string --- status-checks/check.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/status-checks/check.ts b/status-checks/check.ts index 462c17e2..4d905f9d 100644 --- a/status-checks/check.ts +++ b/status-checks/check.ts @@ -317,7 +317,7 @@ const checkComments = async (connector:any) => { } const reqs = ["@dev", "@notice"]; for (let i3 = 0; i3 < reqs.length; i3++) { - if (!func.comments.some((comment) => comment.startsWith(reqs[i3]))) { + if (!func.comments.some((comment:string) => comment.startsWith(reqs[i3]))) { errors.push( `no ${reqs[i3]} for function ${func.name} at ${connector.path}/main.sol:${func.firstLine}` );