mirror of
https://github.com/github/codeql-action.git
synced 2025-12-27 01:30:10 +08:00
15 lines
285 B
JavaScript
15 lines
285 B
JavaScript
// src/until.ts
|
|
var until = async (promise) => {
|
|
try {
|
|
const data = await promise().catch((error) => {
|
|
throw error;
|
|
});
|
|
return { error: null, data };
|
|
} catch (error) {
|
|
return { error, data: null };
|
|
}
|
|
};
|
|
export {
|
|
until
|
|
};
|
|
//# sourceMappingURL=index.mjs.map
|