Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be5d094

Browse files
committed
Remove async from callAsyncFunction
1 parent 3758c2b commit be5d094

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

dist/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9152,7 +9152,7 @@ var lib_github = __webpack_require__(469);
91529152

91539153
// CONCATENATED MODULE: ./src/async-function.ts
91549154
const AsyncFunction = Object.getPrototypeOf(async () => { }).constructor;
9155-
async function callAsyncFunction(args, source) {
9155+
function callAsyncFunction(args, source) {
91569156
const fn = new AsyncFunction(...Object.keys(args), source);
91579157
return fn(...Object.values(args));
91589158
}
@@ -9179,7 +9179,6 @@ async function main() {
91799179
const script = Object(core.getInput)('script', { required: true });
91809180
// Using property/value shorthand on `require` (e.g. `{require}`) causes compilatin errors.
91819181
const result = await callAsyncFunction({ require: __webpack_require__(875), github, context: lib_github.context }, script);
9182-
console.log('test result', result);
91839182
let encoding = Object(core.getInput)('result-encoding');
91849183
encoding = encoding ? encoding : 'json';
91859184
let output;

src/async-function.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const AsyncFunction = Object.getPrototypeOf(async () => {}).constructor
22

33
type AsyncFunctionArguments = {[key: string]: any}
44

5-
export async function callAsyncFunction(
5+
export function callAsyncFunction(
66
args: AsyncFunctionArguments,
77
source: string
88
): Promise<any> {

src/main.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ async function main() {
2323
script
2424
)
2525

26-
console.log('test result', result)
27-
2826
let encoding = core.getInput('result-encoding')
2927
encoding = encoding ? encoding : 'json'
3028

0 commit comments

Comments
 (0)