]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
fix lint errors
authorBO41 <lukasw41@gmail.com>
Sat, 22 Sep 2018 14:56:07 +0000 (16:56 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 26 Sep 2018 14:28:26 +0000 (16:28 +0200)
client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts

index c4837460a948a27f02d716916847717fa3107f04..da0021df99149f8e8c96dc1f8dbb34c12cd2cdea 100644 (file)
@@ -5,8 +5,8 @@ import { I18n } from '@ngx-translate/i18n-polyfill'
 import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
 import { UserValidatorsService } from '@app/shared/forms/form-validators/user-validators.service'
 import { filter } from 'rxjs/operators'
-import { AuthService } from '@app/core';
-import { User } from '../../../../../../shared';
+import { AuthService } from '@app/core'
+import { User } from '../../../../../../shared'
 
 @Component({
   selector: 'my-account-change-password',
@@ -46,7 +46,7 @@ export class MyAccountChangePasswordComponent extends FormReactive implements On
 
   checkPassword () {
     this.error = null
-    const oldPassword = this.form.value[ 'old-password' ];
+    const oldPassword = this.form.value[ 'old-password' ]
 
     // compare old password
     this.authService.login(this.user.account.name, oldPassword)
@@ -60,7 +60,7 @@ export class MyAccountChangePasswordComponent extends FormReactive implements On
 
   }
 
-  private changePassword(){
+  private changePassword () {
     this.userService.changePassword(this.form.value[ 'new-password' ]).subscribe(
       () => {
         this.notificationsService.success(this.i18n('Success'), this.i18n('Password updated.'))