Skip to content

Commit

Permalink
[APM] Fix statement to match function name (#149743)
Browse files Browse the repository at this point in the history
## Summary

this time I did make sure I pushed it πŸ’ 

related to:
#149610 (comment)
  • Loading branch information
kpatticha authored Jan 28, 2023
1 parent 8e7d21f commit 83293c9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions x-pack/plugins/apm/common/environment_filter_values.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,22 @@ export const ENVIRONMENT_NOT_DEFINED = {

function isEnvironmentDefined(environment: string) {
return (
!environment ||
environment === ENVIRONMENT_NOT_DEFINED_VALUE ||
environment === ENVIRONMENT_ALL_VALUE
environment &&
environment !== ENVIRONMENT_NOT_DEFINED_VALUE &&
environment !== ENVIRONMENT_ALL_VALUE
);
}

export function getEnvironmentEsField(environment: string) {
if (isEnvironmentDefined(environment)) {
if (!isEnvironmentDefined(environment)) {
return {};
}

return { [SERVICE_ENVIRONMENT]: environment };
}

export function getEnvironmentKuery(environment: string) {
if (isEnvironmentDefined(environment)) {
if (!isEnvironmentDefined(environment)) {
return null;
}

Expand Down

0 comments on commit 83293c9

Please sign in to comment.