Skip to content

Commit 1d40b7d

Browse files
author
Abigail Cabascango
committed
refactor: TTA-115 fix linters errors
1 parent fe5b055 commit 1d40b7d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ export class ConnectionDirective implements OnInit {
1818
let networkSatus;
1919
if (!(/\fast-5g|3g|4g/.test(effectiveType)) || !(/\slow-2g|2g/.test(effectiveType))){
2020
networkSatus = this.offlineSrc;
21-
return
2221
}
2322

2423
if (/\fast-5g|3g|4g/.test(effectiveType)) {
2524
networkSatus = this.fastSrc;
2625
}
27-
26+
2827
if (/\slow-2g|2g/.test(effectiveType)) {
2928
networkSatus = this.slowSrc;
3029
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class InternetConnectionStatusComponent implements OnInit {
6868
.subscribe((effectiveType: string) => {
6969

7070
this.connectionType = effectiveType;
71-
71+
7272
if (!(/\fast-5g|3g|4g/.test(effectiveType)) || !(/\slow-2g|2g/.test(effectiveType))){
7373
this.toastrService.error('Your request was not completed, you are offline');
7474
this.isFast = false;

0 commit comments

Comments
 (0)