Skip to content

Commit 6ba1833

Browse files
committed
Rename variable to make it more clear
1 parent f76b61c commit 6ba1833

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/agent/ServiceConfig.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ export class ServiceConfig {
175175
updateUserAgentDetails(userAgentDetails: UserAgentDetails[]) {
176176
this.userAgentDetails = [];
177177
for (const detail of userAgentDetails) {
178-
const pattern = safeCreateRegExp(detail.pattern, "i");
179-
if (pattern) {
178+
const regex = safeCreateRegExp(detail.pattern, "i");
179+
if (regex) {
180180
this.userAgentDetails.push({
181181
key: detail.key,
182-
pattern,
182+
pattern: regex,
183183
});
184184
}
185185
}

0 commit comments

Comments
 (0)