Skip to content

Commit 968909b

Browse files
author
Nicole Garcia
committed
style: solve linter problems
1 parent 22c6be7 commit 968909b

File tree

7 files changed

+9
-10
lines changed

7 files changed

+9
-10
lines changed

src/app/app-routing.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ if (isNotLegacy) {
5151
imports: [RouterModule.forRoot(routes)],
5252
exports: [RouterModule],
5353
})
54-
export class AppRoutingModule {
54+
export class AppRoutingModule {
5555

5656
}

src/app/modules/login/services/login.service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ describe('LoginService', () => {
130130
expect(localStorage.clear).toHaveBeenCalled();
131131
expect(cookieService.deleteAll).toHaveBeenCalled();
132132
});
133-
133+
134134
it('should return an http observable when call invalidateSessionCooke', () => {
135135
const result = service.invalidateSessionCookie();
136136
expect(result).toBeDefined();

src/app/modules/login/services/login.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ export class LoginService {
4848
return user && this.cookieService.check('idtoken') ? of(true) : of(false);
4949
} else {
5050
return token ? of(true) : of(false);
51-
//return this.isValidToken(token);
5251
}
5352
}
5453

src/app/modules/shared/components/sidebar/sidebar.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class SidebarComponent implements OnInit {
4949
}
5050

5151
getSidebarItems(){
52-
if (this.userInfoService.isAdmin()){
52+
if (this.userInfoService.isAdmin()) {
5353
this.itemsSidebar = [
5454
{ route: '/time-clock', icon: 'far fa-clock', text: 'Time Clock', active: false },
5555
{ route: '/time-entries', icon: 'far fa-file-alt', text: 'Time Entries', active: false },
@@ -58,7 +58,7 @@ export class SidebarComponent implements OnInit {
5858
{ route: '/customers-management', icon: 'fas fa-users', text: 'Customers', active: false },
5959
{ route: '/users', icon: 'fas fa-user-friends', text: 'Users', active: false },
6060
];
61-
}else {
61+
} else {
6262
this.itemsSidebar = [
6363
{ route: '/time-clock', icon: 'far fa-clock', text: 'Time Clock', active: false },
6464
{ route: '/time-entries', icon: 'far fa-file-alt', text: 'Time Entries', active: false },

src/app/modules/shared/interceptors/inject.token.interceptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class InjectTokenInterceptor implements HttpInterceptor {
3535
if (err instanceof HttpErrorResponse) {
3636
if (err.status === 401) {
3737
this.loginService.logout();
38-
window.open("/login", "_self")
38+
window.open('/login', '_self');
3939
}
4040
}
4141
})

src/app/modules/shared/pipes/substract-date-return-float/substract-date-return-float.pipe.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('SubstractDatePipeDisplayAsFloat', () => {
66
expect(pipe).toBeTruthy();
77
});
88

9-
/*TODO: tests will be more robust if they take into account FIXED_POINT_DIGITS*/
9+
/*TODO: tests will be more robust if they take into account FIXED_POINT_DIGITS*/
1010
it('returns the date diff as float hours (xx.xx)', () => {
1111
[
1212
{ endDate: '2021-04-11T10:20:00Z', startDate: '2021-04-11T08:00:00Z', expectedDiff: '2.33' },

src/polyfills.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ import 'zone.js/dist/zone'; // Included with Angular CLI.
6262
* APPLICATION IMPORTS
6363
*/
6464

65-
(window as any).process = {
66-
env: { DEBUG: undefined },
67-
};
65+
(window as any).process = {
66+
env: { DEBUG: undefined },
67+
};

0 commit comments

Comments
 (0)