Skip to content

Commit 95154d6

Browse files
committed
rename Platform to Os in config.ts
1 parent fb7da3b commit 95154d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ function validateName(name: string) {
7171
}
7272
throw new Error('Name must not be empty');
7373
}
74-
function validatePlatform(os: string) {
74+
function validateOs(os: string) {
7575
if (os) {
7676
return;
7777
}
78-
throw new Error('Platform must not be empty');
78+
throw new Error('Os must not be empty');
7979
}
8080

8181
export async function configFromJobInput(): Promise<Config> {
@@ -86,7 +86,7 @@ export async function configFromJobInput(): Promise<Config> {
8686
const os: string = core.getInput('os');
8787

8888
validateName(name);
89-
validatePlatform(os);
89+
validateOs(os);
9090
validateToolType(tool);
9191
outputFilePath = await validateOutputFilePath(outputFilePath);
9292
dataOutPath = await validateDataOutPath(dataOutPath);

0 commit comments

Comments
 (0)