mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-18 09:52:35 +00:00
Apply suggestions from code review
This commit is contained in:
parent
f2fabc5e65
commit
b00aebe09d
1 changed files with 3 additions and 3 deletions
|
|
@ -101,11 +101,11 @@ class Renovate {
|
||||||
if (/\s/.test(this.input.token.value)) {
|
if (/\s/.test(this.input.token.value)) {
|
||||||
throw new Error('Token MUST NOT contain whitespace');
|
throw new Error('Token MUST NOT contain whitespace');
|
||||||
}
|
}
|
||||||
this.validateConfigFileArgument();
|
await this.validateConfigFileArgument();
|
||||||
this.validateDockerCmdFileArgument();
|
await this.validateDockerCmdFileArgument();
|
||||||
}
|
}
|
||||||
|
|
||||||
private validateConfigFileArgument(): void {
|
private async validateConfigFileArgument(): Promise<void> {
|
||||||
const configurationFile = this.input.configurationFile();
|
const configurationFile = this.input.configurationFile();
|
||||||
if (
|
if (
|
||||||
configurationFile !== null &&
|
configurationFile !== null &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue