Skip to content

Commit

Permalink
Fix for missing else consition (#2213)
Browse files Browse the repository at this point in the history
Signed-off-by: sumukhswamy <[email protected]>
  • Loading branch information
sumukhswamy authored Oct 18, 2024
1 parent 4b5b364 commit c67ca19
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 c67ca19

Please sign in to comment.