Skip to content

Commit 34d748a

Browse files
committed
fixed CI
1 parent 56ee2e4 commit 34d748a

File tree

1 file changed

+9
-8
lines changed
  • packages/toolkit/src/shared/telemetry

1 file changed

+9
-8
lines changed

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,21 +105,22 @@ type EnvType =
105105
| 'other'
106106

107107
export function getComputeEnvType(): EnvType {
108-
if (isCloud9('classic')) return 'cloud9'
108+
if (isCloud9('classic')) { return 'cloud9' }
109109

110-
if (isCloud9('codecatalyst')) return 'cloud9-codecatalyst'
110+
else if (isCloud9('codecatalyst')) { return 'cloud9-codecatalyst' }
111111

112-
if (isInDevEnv()) return 'codecatalyst'
112+
else if (isInDevEnv()) { return 'codecatalyst' }
113113

114-
if (isCn()) return 'amazon-cloud9'
114+
else if (isCn()) { return 'amazon-cloud9' }
115115

116-
if (isSageMaker()) return 'sagemaker'
116+
else if (isSageMaker()) { return 'sagemaker' }
117117

118-
if (env.remoteName === 'ssh-remote' && !isInDevEnv()) return 'ec2'
118+
else if (env.remoteName === 'ssh-remote' && !isInDevEnv()) { return 'ec2' }
119119

120-
if (isAutomation()) return 'test'
120+
else if (isAutomation()) { return 'test' }
121121

122-
if (!env.remoteName) return 'local'
122+
else if (!env.remoteName) { return 'local' }
123+
123124
else return 'other'
124125
}
125126

0 commit comments

Comments
 (0)