Skip to content

Commit 6e637d4

Browse files
Merge master into feature/cwltail
2 parents 78cb83c + 3b6197b commit 6e637d4

File tree

13 files changed

+19
-18
lines changed

13 files changed

+19
-18
lines changed

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"eslint-plugin-security-node": "^1.1.4",
5959
"eslint-plugin-unicorn": "^54.0.0",
6060
"husky": "^9.0.7",
61-
"prettier": "^3.3.2",
61+
"prettier": "^3.3.3",
6262
"prettier-plugin-sh": "^0.14.0",
6363
"pretty-quick": "^4.0.0",
6464
"ts-node": "^10.9.1",

packages/core/src/amazonqFeatureDev/session/sessionState.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ export function registerNewFiles(
7777
const folder =
7878
workspaceFolderPrefixes === undefined
7979
? workspaceFolders[0]
80-
: workspaceFolderPrefixes[prefix] ??
80+
: (workspaceFolderPrefixes[prefix] ??
8181
workspaceFolderPrefixes[
8282
Object.values(workspaceFolderPrefixes).find((val) => val.index === 0)?.name ?? ''
83-
]
83+
])
8484
if (folder === undefined) {
8585
telemetry.toolkit_trackScenario.emit({
8686
count: 1,

packages/core/src/auth/connection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function hasScopes(target: SsoConnection | SsoProfile | string[], scopes:
7373
* Not optimized, but the set of possible scopes is currently very small (< 8)
7474
*/
7575
export function hasExactScopes(target: SsoConnection | SsoProfile | string[], scopes: string[]): boolean {
76-
const targetScopes = Array.isArray(target) ? target : target.scopes ?? []
76+
const targetScopes = Array.isArray(target) ? target : (target.scopes ?? [])
7777
return scopes.length === targetScopes.length && scopes.every((s) => targetScopes.includes(s))
7878
}
7979

packages/core/src/awsService/iot/explorer/iotCertificateNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export abstract class IotCertificateNode extends AWSTreeNodeBase implements AWSR
5050
this.certificate.id,
5151
this.certificate.activeStatus,
5252
formatLocalized(this.certificate.creationDate),
53-
things?.length ?? 0 > 0 ? `\nAttached to: ${things!.join(', ')}` : ''
53+
(things?.length ?? 0 > 0) ? `\nAttached to: ${things!.join(', ')}` : ''
5454
)
5555
this.iconPath = getIcon('aws-iot-certificate')
5656
this.description = `\t[${this.certificate.activeStatus}]`

packages/core/src/awsService/iot/explorer/iotPolicyNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class IotPolicyNode extends AWSTreeNodeBase implements AWSResourceNode {
3939
'AWS.explorerNode.iot.policyToolTip',
4040
'{0}{1}',
4141
policy.name,
42-
certs?.length ?? 0 > 0 ? `\nAttached to: ${certs?.join(', ')}` : ''
42+
(certs?.length ?? 0 > 0) ? `\nAttached to: ${certs?.join(', ')}` : ''
4343
)
4444
this.iconPath = getIcon('aws-iot-policy')
4545
this.contextValue = 'awsIotPolicyNode.Certificates'

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.

0 commit comments

Comments
 (0)