Skip to content

Commit b90399a

Browse files
author
Or Straze
committed
fix linting errors
1 parent 491bd4d commit b90399a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/@aws-cdk/aws-sns/lib/topic-base.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ export abstract class TopicBase extends Resource implements ITopic {
108108
private nextTokenId(scope: Construct) {
109109
let nextSuffix = 1;
110110
const re = /TokenSubscription:([\d]*)/gm;
111-
// Search through the construct and all of its children
111+
// Search through the construct and all of its children
112112
// for previous subscriptions that match our regex pattern
113113
for (const source of scope.node.findAll()) {
114114
const m = re.exec(source.node.id); // Use regex to find a match
115115
if (m !== null) { // if we found a match
116-
const matchSuffix = parseInt(m[1]) // get the suffix for that match (as integer)
116+
const matchSuffix = parseInt(m[1], 10); // get the suffix for that match (as integer)
117117
if (matchSuffix >= nextSuffix) { // check if the match suffix is larger or equal to currently proposed suffix
118-
nextSuffix = matchSuffix + 1; // increment the suffix
118+
nextSuffix = matchSuffix + 1; // increment the suffix
119119
}
120120
}
121121
}

0 commit comments

Comments
 (0)