Skip to content

Commit 5ef7d28

Browse files
chore(tslint): no-conditional-assignment
1 parent 5b45737 commit 5ef7d28

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/transition/transition.ts

+1
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ export class Transition implements IHookRegistry {
537537
*/
538538
redirect(targetState: TargetState): Transition {
539539
let redirects = 1, trans: Transition = this;
540+
// tslint:disable-next-line:no-conditional-assignment
540541
while ((trans = trans.redirectedFrom()) != null) {
541542
if (++redirects > 20) throw new Error(`Too many consecutive Transition redirects (20+)`);
542543
}

src/url/urlMatcher.ts

+2
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ export class UrlMatcher {
262262

263263
let p: any, segment: string;
264264

265+
// tslint:disable-next-line:no-conditional-assignment
265266
while ((matchArray = placeholder.exec(pattern))) {
266267
p = matchDetails(matchArray, false);
267268
if (p.segment.indexOf('?') >= 0) break; // we're into the search part
@@ -284,6 +285,7 @@ export class UrlMatcher {
284285
if (search.length > 0) {
285286
last = 0;
286287

288+
// tslint:disable-next-line:no-conditional-assignment
287289
while ((matchArray = searchPlaceholder.exec(search))) {
288290
p = matchDetails(matchArray, true);
289291
checkParamErrors(p.id);

0 commit comments

Comments
 (0)