Skip to content

Commit 09f2894

Browse files
committed
remove try catch
1 parent bbcdc96 commit 09f2894

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/commands/run.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -424,14 +424,7 @@ export class RunCommand extends ApifyCommand<typeof RunCommand> {
424424
* @param inputOverride Optional input received through command flags
425425
*/
426426
private async validateAndStoreInput(inputOverride?: { input: Record<string, unknown>; source: string }) {
427-
let inputSchema: Record<string, unknown> | null | undefined;
428-
429-
try {
430-
({ inputSchema } = await readInputSchema({ cwd: process.cwd() }));
431-
} catch (err) {
432-
warning({ message: (err as Error).message });
433-
inputSchema = null;
434-
}
427+
const { inputSchema } = await readInputSchema({ cwd: process.cwd() });
435428

436429
if (!inputSchema) {
437430
if (!inputOverride) {

0 commit comments

Comments
 (0)