diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-16 10:50:30 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-16 10:51:03 +0200 |
commit | 133592034881926dc2da63735fe7344bfedd9c31 (patch) | |
tree | f71ec1e261ef59dd20b92be8243cd31f7c1049c5 | |
parent | a700f1837e8307cf5a0ada19e9be6f421961f45a (diff) | |
download | PeerTube-133592034881926dc2da63735fe7344bfedd9c31.tar.gz PeerTube-133592034881926dc2da63735fe7344bfedd9c31.tar.zst PeerTube-133592034881926dc2da63735fe7344bfedd9c31.zip |
Fix rxjs throw
-rw-r--r-- | client/src/app/login/login.component.ts | 3 | ||||
-rw-r--r-- | client/src/app/shared/rest/rest-extractor.service.ts | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/client/src/app/login/login.component.ts b/client/src/app/login/login.component.ts index f7b49ec45..2514faf94 100644 --- a/client/src/app/login/login.component.ts +++ b/client/src/app/login/login.component.ts | |||
@@ -40,8 +40,7 @@ export class LoginComponent extends FormReactive implements OnInit { | |||
40 | private serverService: ServerService, | 40 | private serverService: ServerService, |
41 | private redirectService: RedirectService, | 41 | private redirectService: RedirectService, |
42 | private notificationsService: NotificationsService, | 42 | private notificationsService: NotificationsService, |
43 | private formBuilder: FormBuilder, | 43 | private formBuilder: FormBuilder) { |
44 | private router: Router) { | ||
45 | super() | 44 | super() |
46 | } | 45 | } |
47 | 46 | ||
diff --git a/client/src/app/shared/rest/rest-extractor.service.ts b/client/src/app/shared/rest/rest-extractor.service.ts index 4cfe28536..db087d407 100644 --- a/client/src/app/shared/rest/rest-extractor.service.ts +++ b/client/src/app/shared/rest/rest-extractor.service.ts | |||
@@ -85,8 +85,6 @@ export class RestExtractor { | |||
85 | errorObj.body = err.error | 85 | errorObj.body = err.error |
86 | } | 86 | } |
87 | 87 | ||
88 | observableThrowError(errorObj) | 88 | return observableThrowError(errorObj) |
89 | |||
90 | return of(undefined) | ||
91 | } | 89 | } |
92 | } | 90 | } |