Skip to content

Commit a5c57ab

Browse files
committed
cleanup
1 parent ec68625 commit a5c57ab

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/core/src/codewhisperer/region/regionProfileManager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class RegionProfileManager {
125125
const getProfileFunction = () =>
126126
globals.globalState.tryGet<{ [label: string]: RegionProfile }>('aws.amazonq.regionProfiles', Object, {})
127127
const profileChangedHandler = async () => {
128-
const profile = await this.loadPersistedRegionProfle()
128+
const profile = this.loadPersistedRegionProfle()
129129
void this._switchRegionProfile(profile[this.authProvider.profileName], 'reload')
130130
}
131131

@@ -274,7 +274,7 @@ export class RegionProfileManager {
274274

275275
// Note: should be called after [this.authProvider.isConnected()] returns non null
276276
async restoreRegionProfile() {
277-
const previousSelected = (await this.loadPersistedRegionProfle())[this.authProvider.profileName] || undefined
277+
const previousSelected = this.loadPersistedRegionProfle()[this.authProvider.profileName] || undefined
278278
if (!previousSelected) {
279279
return
280280
}
@@ -308,7 +308,7 @@ export class RegionProfileManager {
308308
await this.switchRegionProfile(previousSelected, 'reload')
309309
}
310310

311-
private async loadPersistedRegionProfle(): Promise<{ [label: string]: RegionProfile }> {
311+
private loadPersistedRegionProfle(): { [label: string]: RegionProfile } {
312312
const previousPersistedState = globals.globalState.tryGet<{ [label: string]: RegionProfile }>(
313313
'aws.amazonq.regionProfiles',
314314
Object,

packages/core/src/shared/fs/fs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class FileSystem {
123123
* The {@link vscode.workspace.fs} implementation does not explicitly provide an append method
124124
* so we must do it ourselves (this implementation is inefficient).
125125
*/
126-
async appendFile(path: Uri | string, content: Uint8Array | string, overwrite: boolean = false): Promise<void> {
126+
async appendFile(path: Uri | string, content: Uint8Array | string): Promise<void> {
127127
path = toUri(path)
128128

129129
const currentContent: Uint8Array = (await this.existsFile(path))

packages/core/src/shared/globalState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export type globalKey =
5151
| 'aws.amazonq.customization.overrideV2'
5252
| 'aws.amazonq.regionProfiles'
5353
| 'aws.amazonq.regionProfiles.cache'
54-
// Deprecated/legacy names. New keys should start with "aws.".x
54+
// Deprecated/legacy names. New keys should start with "aws.".
5555
| '#sessionCreationDates' // Legacy name from `ssoAccessTokenProvider.ts`.
5656
| 'CODECATALYST_RECONNECT'
5757
| 'CODEWHISPERER_AUTO_SCANS_ENABLED'

0 commit comments

Comments
 (0)