mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-622] No implicit returns (#5157)
* enable noImplicitReturns rule * type fixes * fix return types * fix return value * fix tests * fix visibility service * update tests * add missing types * fix test
This commit is contained in:
@@ -197,7 +197,7 @@ export class LoginComponent implements OnInit, OnDestroy {
|
||||
* @param values
|
||||
* @param event
|
||||
*/
|
||||
onSubmit(values: any) {
|
||||
onSubmit(values: any): void {
|
||||
this.disableError();
|
||||
|
||||
if (this.authService.isOauth() && !this.authService.isSSODiscoveryConfigured()) {
|
||||
@@ -209,9 +209,7 @@ export class LoginComponent implements OnInit, OnDestroy {
|
||||
});
|
||||
this.executeSubmit.emit(args);
|
||||
|
||||
if (args.defaultPrevented) {
|
||||
return false;
|
||||
} else {
|
||||
if (!args.defaultPrevented) {
|
||||
this.performLogin(values);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user