refactor: Async functions don't need to explicitly return promises (no-changelog) (#6041)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-04-24 11:17:08 +00:00
committed by GitHub
parent 03be725cef
commit 308a94311f
31 changed files with 148 additions and 209 deletions

View File

@@ -542,10 +542,10 @@ export class CredentialsHelper extends ICredentialsHelper {
): Promise<INodeCredentialTestResult> {
const credentialTestFunction = this.getCredentialTestFunction(credentialType);
if (credentialTestFunction === undefined) {
return Promise.resolve({
return {
status: 'Error',
message: 'No testing function found for this credential.',
});
};
}
if (credentialsDecrypted.data) {