Skip to content

Commit 6f6531b

Browse files
committed
refactor: change function order
1 parent 576e7a3 commit 6f6531b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/input.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ export interface Input {
77
readonly FilePath: string
88
}
99

10+
export const getInput = (): Input => ({
11+
Token: core.getInput('token'),
12+
GistID: core.getInput('gist_id'),
13+
GistFileName: core.getInput('gist_file_name'),
14+
FilePath: core.getInput('file_path')
15+
})
16+
1017
export const showInput = (input: Input): void => {
1118
core.info(`\
1219
[INFO] GistID: ${input.GistID}
1320
[INFO] GistFileName: ${input.GistFileName ?? 'No Change'}
1421
[INFO] FilePath: ${input.FilePath}
1522
`)
1623
}
17-
18-
export const getInput = (): Input => ({
19-
Token: core.getInput('token'),
20-
GistID: core.getInput('gist_id'),
21-
GistFileName: core.getInput('gist_file_name'),
22-
FilePath: core.getInput('file_path')
23-
})

0 commit comments

Comments
 (0)