Skip to content

Commit 2f92fe7

Browse files
cexbrayatangular-robot[bot]
authored andcommittedDec 2, 2022
fix(@schematics/angular): add missing semicolon in functional guard/resolver/interceptor
1 parent 66a9710 commit 2f92fe7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎packages/schematics/angular/guard/type-files/__name@dasherize__.guard.ts.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ export const <%= camelize(name) %>Guard: <%= guardType %><% if (guardType === 'C
66
%><% if (guardType === 'CanActivateChildFn') { %>(childRoute, state)<% }
77
%><% if (guardType === 'CanDeactivateFn') { %>(component, currentRoute, currentState, nextState)<% } %> => {
88
return true;
9-
}
9+
};

‎packages/schematics/angular/interceptor/functional-files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.ts.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import { HttpInterceptorFn } from '@angular/common/http';
22

33
export const <%= camelize(name) %>Interceptor: HttpInterceptorFn = (req, next) => {
44
return next(req);
5-
}
5+
};

‎packages/schematics/angular/resolver/functional-files/__name@dasherize__.resolver.ts.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import { ResolveFn } from '@angular/router';
22

33
export const <%= camelize(name) %>Resolver: ResolveFn<boolean> = (route, state) => {
44
return true;
5-
}
5+
};

0 commit comments

Comments
 (0)
Please sign in to comment.