]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/angular/app/app.component.ts
Add typescript (and angular2) linter
[github/Chocobozzz/PeerTube.git] / client / angular / app / app.component.ts
index 1648b887020df7fcaa73cbdca7a5bc264f902e65..68c9ba0090510fd8d9e3c1c3446e74dec5a4283c 100644 (file)
@@ -53,8 +53,11 @@ export class AppComponent {
               private _authService: AuthService,
               private _router: Router
   ) {
-    if (localStorage.getItem('access_token')) this.isLoggedIn = true;
-    else this.isLoggedIn = false;
+    if (localStorage.getItem('access_token')) {
+      this.isLoggedIn = true;
+    } else {
+      this.isLoggedIn = false;
+    }
 
     this._authService.loginChanged$.subscribe(
       status => {
@@ -87,7 +90,7 @@ export class AppComponent {
         }
       },
       error => alert(error)
-    )
+    );
   }
 
   quitFriends() {
@@ -96,6 +99,6 @@ export class AppComponent {
           alert('Quit friends!');
       },
       error => alert(error)
-    )
+    );
   }
 }