Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Jan 18, 2024
1 parent 6cf21a5 commit b5c7a3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/solhint-custom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ module.exports = [
);

node?.subNodes
?.filter(({ type, name }) => type === 'CustomErrorDefinition' && !domains.find(domain => name.startsWith(domain)))
?.filter(
({ type, name }) => type === 'CustomErrorDefinition' && !domains.find(domain => name.startsWith(domain)),
)
.forEach(customError => this.error(customError, 'Custom errors should contain corresponding domain prefix'));
}

Expand Down

0 comments on commit b5c7a3d

Please sign in to comment.