Skip to content

Commit

Permalink
fix: fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
tadayosi committed Jul 16, 2024
1 parent 76e3a6a commit 94256ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/hawtio/src/plugins/camel/icons/Icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ export function getIcon(name: string, size?: number): JSX.Element {
}
}

return element ? element : elementMap.get(IconNames.GenericIcon) ?? svg.generic
return element ? element : (elementMap.get(IconNames.GenericIcon) ?? svg.generic)
}
2 changes: 1 addition & 1 deletion packages/hawtio/src/plugins/camel/routes-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class RoutesService {

const mbeanName = routesNode.getMetadata(contextNodeType)
const operationForMBean = mbeanName ? routesFolderOperation : routeNodeOperation
const mbeanToQuery = mbeanName ? mbeanName : routesNode.objectName ?? ''
const mbeanToQuery = mbeanName ? mbeanName : (routesNode.objectName ?? '')

try {
xml = await jolokiaService.execute(mbeanToQuery, operationForMBean, [true, true])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class SpringBootService {

jmxTraces
.filter(trace => {
const path = trace.info ? trace.info.path : trace.request?.uri ?? ''
const path = trace.info ? trace.info.path : (trace.request?.uri ?? '')
// Avoid including our own jolokia requests in the results
return /.*?\/jolokia\/?(?:\/.*(?=$))?$/.test(path) === false
})
Expand Down

0 comments on commit 94256ee

Please sign in to comment.