Skip to content

Commit 5bc7915

Browse files
author
Abigail Cabascango
committed
refactor: TTA-115 solve linting
1 parent 8e72487 commit 5bc7915

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/app/modules/internet-connection-status/internet-connection-directives/connection.directive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ export class ConnectionDirective implements OnInit {
1818
let networkSatus;
1919
if (/\fast-5g|3g|4g/.test(effectiveType)) {
2020
networkSatus = this.fastSrc;
21-
return
21+
return;
2222
}
2323
if (/\slow-2g|2g/.test(effectiveType)) {
2424
networkSatus = this.slowSrc;
25-
return
25+
return;
2626
}
2727
networkSatus = this.offlineSrc;
2828

src/app/modules/internet-connection-status/internet-connection-status.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ export class InternetConnectionStatusComponent implements OnInit {
6767
.subscribe((effectiveType: string) => {
6868

6969
this.connectionType = effectiveType;
70-
71-
if (/\fast-5g|3g|4g/.test(effectiveType)) {
70+
71+
if (/\fast-5g|3g|4g/.test(effectiveType)) {
7272
this.toastrService.error('Your request was not completed, you are offline');
7373
this.isFast = true;
74-
return
74+
return;
7575
}
7676
if (/\slow-2g|2g/.test(effectiveType)) {
7777
this.toastrService.warning('Caution your connection is slow');
7878
this.isFast = false;
79-
return
79+
return;
8080
}
8181
this.isFast = false;
8282
});

src/app/modules/shared/services/status-network.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ export class StatusNetworkService {
2222

2323
if (effectiveTypenetwork.effectiveType === '2g') {
2424
this.toastrService.warning('Your request was not completed, your connection is slow');
25-
return
25+
return;
2626
}
2727

2828
if (!isError) {
2929
this.toastrService.warning(message);
30-
return
30+
return;
3131
}
3232

3333
const errorMessa = (error.error && error.error.message ? error.error.message :

0 commit comments

Comments
 (0)