use comment:string

This commit is contained in:
Aleksandr S 2022-03-03 17:10:19 +03:00
parent 6656bc7412
commit 9d3775565d

View File

@ -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}`
);