Skip to content

Commit 69167ad

Browse files
committed
fixup: code review
1 parent 35e23d8 commit 69167ad

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/cli/src/commands/create/astro-config.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export async function parseAstroConfig(astroConfigPath: string): Promise<t.File>
2727
* tutorialkit({ isolation: 'require-corp' })
2828
* ```
2929
*
30-
* If `tutorialkit` is currently invoked as, and this function is called with `{ enterprise: {} }`
31-
* as the new tutorialkit object, then the modified config will contain:
30+
* If `tutorialkit` is currently invoked like in the example above, and this function is called
31+
* with `{ enterprise: {} }` as the new tutorialkit object, then the modified config will contain:
3232
*
3333
* ```ts
3434
* tutorialkit({ isolation: 'require-corp', enterprise: {} })
@@ -151,7 +151,7 @@ export function replaceArgs(newTutorialKitArgs: Options, ast: t.File) {
151151
*/
152152
function updateObject(properties: any, object: t.ObjectExpression | undefined): t.ObjectExpression {
153153
if (typeof properties !== 'object') {
154-
return t.objectExpression([]);
154+
return;
155155
}
156156

157157
object ??= t.objectExpression([]);
@@ -171,8 +171,6 @@ function updateObject(properties: any, object: t.ObjectExpression | undefined):
171171
}
172172
}
173173
}
174-
175-
return object;
176174
}
177175

178176
/**

0 commit comments

Comments
 (0)