MCPcopy Index your code
hub / github.com/actions/setup-java / ignoreError

Function ignoreError

src/cleanup-java.ts:39–48  ·  view source on GitHub ↗

* The save process is best-effort, and it should not make the workflow fail * even though this process throws an error. * @param promise the promise to ignore error from * @returns Promise that will ignore error reported by the given promise

(promise: Promise<void>)

Source from the content-addressed store, hash-verified

37 * @returns Promise that will ignore error reported by the given promise
38 */
39async function ignoreError(promise: Promise<void>) {
40 return new Promise(resolve => {
41 promise
42 .catch(error => {
43 core.warning(error);
44 resolve(void 0);
45 })
46 .then(resolve);
47 });
48}
49
50export async function run() {
51 await removePrivateKeyFromKeychain();

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected