File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
packages/toolkit/src/shared/telemetry Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -105,21 +105,22 @@ type EnvType =
105
105
| 'other'
106
106
107
107
export function getComputeEnvType ( ) : EnvType {
108
- if ( isCloud9 ( 'classic' ) ) return 'cloud9'
108
+ if ( isCloud9 ( 'classic' ) ) { return 'cloud9' }
109
109
110
- if ( isCloud9 ( 'codecatalyst' ) ) return 'cloud9-codecatalyst'
110
+ else if ( isCloud9 ( 'codecatalyst' ) ) { return 'cloud9-codecatalyst' }
111
111
112
- if ( isInDevEnv ( ) ) return 'codecatalyst'
112
+ else if ( isInDevEnv ( ) ) { return 'codecatalyst' }
113
113
114
- if ( isCn ( ) ) return 'amazon-cloud9'
114
+ else if ( isCn ( ) ) { return 'amazon-cloud9' }
115
115
116
- if ( isSageMaker ( ) ) return 'sagemaker'
116
+ else if ( isSageMaker ( ) ) { return 'sagemaker' }
117
117
118
- if ( env . remoteName === 'ssh-remote' && ! isInDevEnv ( ) ) return 'ec2'
118
+ else if ( env . remoteName === 'ssh-remote' && ! isInDevEnv ( ) ) { return 'ec2' }
119
119
120
- if ( isAutomation ( ) ) return 'test'
120
+ else if ( isAutomation ( ) ) { return 'test' }
121
121
122
- if ( ! env . remoteName ) return 'local'
122
+ else if ( ! env . remoteName ) { return 'local' }
123
+
123
124
else return 'other'
124
125
}
125
126
You can’t perform that action at this time.
0 commit comments