Skip to content

Commit

Permalink
Fix for missing else consition (#2213) (#2214)
Browse files Browse the repository at this point in the history
(cherry picked from commit c67ca19)

Signed-off-by: sumukhswamy <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sumukh Swamy <[email protected]>
  • Loading branch information
3 people authored Oct 18, 2024
1 parent 6664802 commit 7559048
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions server/adaptors/metrics/metrics_analytics_adaptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ export class MetricsAnalyticsAdaptor {
body: query,
index,
});
} else {
response = await client.callAsCurrentUser('search', {
body: query,
index,
});
}
response = await client.callAsCurrentUser('search', {
body: query,
index,
});
return response;
} catch (error) {
throw new Error('Fetch Otel Metrics Error:' + error);
Expand Down

0 comments on commit 7559048

Please sign in to comment.