Removed unused try catch

This commit is contained in:
mauriziovitale84
2016-06-16 12:28:18 +01:00
parent b6c342514f
commit 3ec45ca511

View File

@@ -105,15 +105,10 @@ export class AlfrescoLoginComponent {
this.auth.login(value.username, value.password)
.subscribe(
(token: any) => {
try {
this.success = true;
this.onSuccess.emit({
value: 'Login OK'
});
} catch (error) {
console.error(error.message);
}
this.success = true;
this.onSuccess.emit({
value: 'Login OK'
});
},
(err: any) => {
this.error = true;