Skip to content

Commit a78cce6

Browse files
committed
minimize changes
1 parent a9cd834 commit a78cce6

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

packages/core/src/auth/connection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export class ProfileStore {
233233
// To de-dupe telemetry
234234
private _prevGetProfile: { id: string; connectionState: ProfileMetadata['connectionState'] } | undefined
235235

236-
public constructor(private readonly memento: vscode.Memento) { }
236+
public constructor(private readonly memento: vscode.Memento) {}
237237

238238
public getProfile(id: string): StoredProfile | undefined {
239239
return this.getData()[id]

packages/core/src/codecatalyst/devEnv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class DevEnvActivityStarter {
9898
}
9999
// If user is not authenticated, assume 15 minutes.
100100
const inactivityTimeoutMin =
101-
devenvTimeoutMs > 0 ? devenvTimeoutMs / 60000 : thisDevenv?.summary.inactivityTimeoutMinutes ?? 15
101+
devenvTimeoutMs > 0 ? devenvTimeoutMs / 60000 : (thisDevenv?.summary.inactivityTimeoutMinutes ?? 15)
102102
if (!shouldSendActivity(inactivityTimeoutMin)) {
103103
getLogger().info(
104104
`codecatalyst: disabling DevEnvActivity heartbeat: configured to never timeout (inactivityTimeoutMinutes=${inactivityTimeoutMin})`

packages/core/src/codewhisperer/service/securityScanHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export async function uploadArtifactToS3(
310310
)
311311
const errorMessage = getTelemetryReasonDesc(error)?.includes(`"PUT" request failed with code "403"`)
312312
? `"PUT" request failed with code "403"`
313-
: getTelemetryReasonDesc(error) ?? 'Security scan failed.'
313+
: (getTelemetryReasonDesc(error) ?? 'Security scan failed.')
314314

315315
throw new UploadArtifactToS3Error(errorMessage)
316316
}

packages/core/src/lambda/models/samLambdaRuntime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export function createRuntimeQuickPick(params: {
258258
totalSteps?: number
259259
}): QuickPickPrompter<RuntimeAndPackage> {
260260
const zipRuntimes = params.runtimeFamily
261-
? getRuntimesForFamily(params.runtimeFamily) ?? samLambdaCreatableRuntimes()
261+
? (getRuntimesForFamily(params.runtimeFamily) ?? samLambdaCreatableRuntimes())
262262
: samLambdaCreatableRuntimes()
263263

264264
const zipRuntimeItems = zipRuntimes

packages/core/src/shared/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ export function scrubNames(s: string, username?: string) {
454454
* @param err Error object, or message text
455455
*/
456456
export function getTelemetryReasonDesc(err: unknown | undefined): string | undefined {
457-
const m = typeof err === 'string' ? err : getErrorMsg(err as Error, true) ?? ''
457+
const m = typeof err === 'string' ? err : (getErrorMsg(err as Error, true) ?? '')
458458
const msg = scrubNames(m, _username)
459459

460460
// Truncate message as these strings can be very long.

packages/core/src/shared/resourcefetcher/httpResourceFetcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class HttpResourceFetcher implements ResourceFetcher {
138138
}
139139

140140
private logText(): string {
141-
return this.params.showUrl ? this.url : this.params.friendlyName ?? 'resource from URL'
141+
return this.params.showUrl ? this.url : (this.params.friendlyName ?? 'resource from URL')
142142
}
143143

144144
private logCancellation(event: CancelEvent) {

packages/core/src/webviews/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ function createWebviewPanel(ctx: vscode.ExtensionContext, params: WebviewPanelPa
349349
const viewColumn =
350350
isCloud9() && params.viewColumn === vscode.ViewColumn.Beside
351351
? vscode.ViewColumn.Two
352-
: params.viewColumn ?? vscode.ViewColumn.Active
352+
: (params.viewColumn ?? vscode.ViewColumn.Active)
353353

354354
const panel = vscode.window.createWebviewPanel(
355355
params.id,

0 commit comments

Comments
 (0)