Commit b90399a Or Straze
committed
1 parent 491bd4d commit b90399a Copy full SHA for b90399a
File tree 1 file changed +3
-3
lines changed
packages/@aws-cdk/aws-sns/lib
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -108,14 +108,14 @@ export abstract class TopicBase extends Resource implements ITopic {
108
108
private nextTokenId ( scope : Construct ) {
109
109
let nextSuffix = 1 ;
110
110
const re = / T o k e n S u b s c r i p t i o n : ( [ \d ] * ) / gm;
111
- // Search through the construct and all of its children
111
+ // Search through the construct and all of its children
112
112
// for previous subscriptions that match our regex pattern
113
113
for ( const source of scope . node . findAll ( ) ) {
114
114
const m = re . exec ( source . node . id ) ; // Use regex to find a match
115
115
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)
117
117
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
119
119
}
120
120
}
121
121
}
You can’t perform that action at this time.
0 commit comments