Skip to content

Commit d8ae326

Browse files
authored
use optional catch
1 parent d0ce9cc commit d8ae326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next-codemod/bin/upgrade.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ function isUsingAppDir(projectPath: string): boolean {
412412
*/
413413
async function suggestTurbopack(packageJson: any): Promise<void> {
414414
const devScript: string = packageJson.scripts['dev']
415-
if (devScript && devScript.includes('--turbopack')) return
415+
if (devScript?.includes('--turbopack')) return
416416

417417
const responseTurbopack = await prompts(
418418
{

0 commit comments

Comments
 (0)