mirror of
https://github.com/pnpm/action-setup.git
synced 2025-07-04 11:33:07 +08:00
refactor: Remove then
This commit is contained in:
@ -5,10 +5,9 @@ import install from './install'
|
||||
|
||||
async function main() {
|
||||
const inputs = getInputs()
|
||||
await install(inputs).then(() => {
|
||||
console.log('Installation Completed!')
|
||||
setOutputs(inputs)
|
||||
})
|
||||
await install(inputs)
|
||||
console.log('Installation Completed!')
|
||||
setOutputs(inputs)
|
||||
}
|
||||
|
||||
main().catch(error => {
|
||||
|
Reference in New Issue
Block a user