Skip to content

Commit cc1f704

Browse files
committed
chore: handle platform keys with dot notation instead of bracket
Refactored platform access in `generateNotes` to use dot notation. Related-Task: INTER-1194
1 parent 66a49b0 commit cc1f704

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/generateNotes.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ const generateNotes = async (config: PluginConfig, ctx: GenerateNotesContext) =>
2525
throw new Error('No platforms specified. You must configure at least one platform under `platforms`.')
2626
}
2727

28-
if (platforms['android']) {
29-
const androidVersion = await androidResolve(ctx, platforms['android'])
30-
platformVersions['android'] = androidVersion
28+
if (platforms.android) {
29+
const androidVersion = await androidResolve(ctx, platforms.android)
30+
platformVersions.android = androidVersion
3131
ctx.logger.log(`Detected Android Version: \`${androidVersion}\``)
3232
}
3333

34-
if (platforms['iOS']) {
35-
const iOSVersion = await iOSResolve(ctx, platforms['iOS'])
36-
platformVersions['iOS'] = iOSVersion
34+
if (platforms.iOS) {
35+
const iOSVersion = await iOSResolve(ctx, platforms.iOS)
36+
platformVersions.iOS = iOSVersion
3737
ctx.logger.log(`Detected iOS Version: \`${iOSVersion}\``)
3838
}
3939

0 commit comments

Comments
 (0)