refactor: change Promise<any> to Promise<void>
This commit is contained in:
parent
7b1d8d3b9b
commit
2eb9c97d23
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ import installer from "./installer";
|
||||||
async function run() {
|
async function run() {
|
||||||
try {
|
try {
|
||||||
getLatestVersion().then(
|
getLatestVersion().then(
|
||||||
async function(latestVersion): Promise<any> {
|
async function(latestVersion): Promise<void> {
|
||||||
const hugoVersion: string = core.getInput("hugo-version");
|
const hugoVersion: string = core.getInput("hugo-version");
|
||||||
console.log(`Hugo version: ${hugoVersion}`);
|
console.log(`Hugo version: ${hugoVersion}`);
|
||||||
const version = (v: string, latestVersion: string): string => {
|
const version = (v: string, latestVersion: string): string => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue