]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix tslint check
authorChocobozzz <florian.bigard@gmail.com>
Thu, 14 Apr 2016 20:12:03 +0000 (22:12 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Thu, 14 Apr 2016 20:12:03 +0000 (22:12 +0200)
client/angular/users/components/login/login.component.ts
client/angular/videos/components/list/videos-list.component.ts
client/package.json

index 35dea4f9bcaff0b498644f35ea8777bd56086fa4..cecf5d2fd741c50b1d03e3c19e589e219f217855 100644 (file)
@@ -27,9 +27,8 @@ export class UserLoginComponent {
       error => {
         if (error.error === 'invalid_grant') {
           alert('Credentials are invalid.');
-        }
-        else {
-          alert(`${error.error}: ${error.error_description}`)
+        } else {
+          alert(`${error.error}: ${error.error_description}`);
         }
       }
     );
index b9b440d40b3afa5d97030be46e0443c95d1088c3..425d2dcfcbb125444067a4baf7dbecefae00e53e 100644 (file)
@@ -38,7 +38,7 @@ export class VideosListComponent implements OnInit {
   getVideos() {
     let observable = null;
 
-    if (this.search !== null) {""
+    if (this.search !== null) {
       observable = this._videosService.searchVideos(this.search);
     } else {
       observable = this._videosService.getVideos();
index 1d1fde71bd546b7d99af08ae2de21de381c11dfe..8070881f555ac07615737a37781b107ba8923fa8 100644 (file)
@@ -17,7 +17,7 @@
     "tsc:w": "tsc -w",
     "typings": "typings",
     "postinstall": "typings install",
-    "test": "tslint -c ./tslint.json angular/**/*.ts angular/**/**/*.ts"
+    "test": "tslint -c ./tslint.json angular/**/*.ts angular/**/**/*.ts angular/**/**/**/*.ts"
   },
   "license": "ISC",
   "dependencies": {