mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 01:27:22 +00:00
Simplify return types for passes
This commit is contained in:
@@ -281,9 +281,7 @@ export class TestEnv<
|
||||
return this.fn(this.state as unknown as ActionState<Fs>, ...this.args);
|
||||
}
|
||||
|
||||
public passes<T>(
|
||||
assertion: (makeCall: () => R) => T | Promise<T>,
|
||||
): T | Promise<T> {
|
||||
public passes<T>(assertion: (makeCall: () => R) => Promise<T>): Promise<T> {
|
||||
return assertion(() => {
|
||||
const result = this.call();
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user