mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Removed unused try catch
This commit is contained in:
@@ -105,15 +105,10 @@ export class AlfrescoLoginComponent {
|
|||||||
this.auth.login(value.username, value.password)
|
this.auth.login(value.username, value.password)
|
||||||
.subscribe(
|
.subscribe(
|
||||||
(token: any) => {
|
(token: any) => {
|
||||||
try {
|
this.success = true;
|
||||||
this.success = true;
|
this.onSuccess.emit({
|
||||||
this.onSuccess.emit({
|
value: 'Login OK'
|
||||||
value: 'Login OK'
|
});
|
||||||
});
|
|
||||||
} catch (error) {
|
|
||||||
console.error(error.message);
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
},
|
||||||
(err: any) => {
|
(err: any) => {
|
||||||
this.error = true;
|
this.error = true;
|
||||||
|
Reference in New Issue
Block a user