File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/performance/src/utils Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export function getEffectiveConnectionType(): EffectiveConnectionType {
95
95
}
96
96
97
97
export function isValidCustomAttributeName ( name : string ) : boolean {
98
- if ( name . length == 0 || name . length > MAX_ATTRIBUTE_NAME_LENGTH ) {
98
+ if ( name . length === 0 || name . length > MAX_ATTRIBUTE_NAME_LENGTH ) {
99
99
return false ;
100
100
}
101
101
const matchesReservedPrefix = RESERVED_ATTRIBUTE_PREFIXES . some ( prefix =>
@@ -105,5 +105,5 @@ export function isValidCustomAttributeName(name: string): boolean {
105
105
}
106
106
107
107
export function isValidCustomAttributeValue ( value : string ) : boolean {
108
- return value . length != 0 && value . length <= MAX_ATTRIBUTE_VALUE_LENGTH ;
108
+ return value . length !== 0 && value . length <= MAX_ATTRIBUTE_VALUE_LENGTH ;
109
109
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const MAX_METRIC_NAME_LENGTH = 100;
19
19
const RESERVED_AUTO_PREFIX = '_' ;
20
20
21
21
export function isValidCustomMetricName ( name : string ) : boolean {
22
- if ( name . length == 0 || name . length > MAX_METRIC_NAME_LENGTH ) {
22
+ if ( name . length === 0 || name . length > MAX_METRIC_NAME_LENGTH ) {
23
23
return false ;
24
24
}
25
25
return ! name . startsWith ( RESERVED_AUTO_PREFIX ) ;
You can’t perform that action at this time.
0 commit comments