Skip to content

Commit b69523b

Browse files
committed
formated file
1 parent fed6b94 commit b69523b

File tree

1 file changed

+19
-17
lines changed
  • packages/toolkit/src/shared/telemetry

1 file changed

+19
-17
lines changed

packages/toolkit/src/shared/telemetry/util.ts

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -105,23 +105,25 @@ type EnvType =
105105
| 'other'
106106

107107
export function getComputeEnvType(): EnvType {
108-
if (isCloud9('classic')) { return 'cloud9' }
109-
110-
else if (isCloud9('codecatalyst')) { return 'cloud9-codecatalyst' }
111-
112-
else if (isInDevEnv()) { return 'codecatalyst' }
113-
114-
else if (isCn()) { return 'amazon-cloud9' }
115-
116-
else if (isSageMaker()) { return 'sagemaker' }
117-
118-
else if (env.remoteName === 'ssh-remote' && !isInDevEnv()) { return 'ec2' }
119-
120-
else if (isAutomation()) { return 'test' }
121-
122-
else if (!env.remoteName) { return 'local' }
123-
124-
else { return 'other' }
108+
if (isCloud9('classic')) {
109+
return 'cloud9'
110+
} else if (isCloud9('codecatalyst')) {
111+
return 'cloud9-codecatalyst'
112+
} else if (isInDevEnv()) {
113+
return 'codecatalyst'
114+
} else if (isCn()) {
115+
return 'amazon-cloud9'
116+
} else if (isSageMaker()) {
117+
return 'sagemaker'
118+
} else if (env.remoteName === 'ssh-remote' && !isInDevEnv()) {
119+
return 'ec2'
120+
} else if (isAutomation()) {
121+
return 'test'
122+
} else if (!env.remoteName) {
123+
return 'local'
124+
} else {
125+
return 'other'
126+
}
125127
}
126128

127129
/**

0 commit comments

Comments
 (0)