Skip to content

Commit e13221a

Browse files
committed
cleanup
1 parent a32701f commit e13221a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ const endpoints = createConstantMap({
5050
*/
5151
export type ProfileSwitchIntent = 'user' | 'auth' | 'update' | 'reload'
5252

53-
// Only "valid" state will have non null profiles
5453
type CachedApiResultWithLock = {
5554
// Lock
5655
locked: boolean
@@ -145,9 +144,6 @@ export class RegionProfileManager {
145144
RegionProfileManager.logger.info(`obtained cache lock %s`, cached)
146145

147146
const availableProfiles: RegionProfile[] = []
148-
// Load cache and use it directly if it's in "valid" state
149-
// If it's pending, keep waiting until the ongoing pull finishes its job
150-
151147
const now = globals.clock.Date.now()
152148
if (cached?.result && now - cached.result.timestamp < 60000) {
153149
RegionProfileManager.logger.info(

0 commit comments

Comments
 (0)