Skip to content

Commit

Permalink
fix: rm unused
Browse files Browse the repository at this point in the history
  • Loading branch information
astandrik committed Sep 24, 2024
1 parent de88cd0 commit 2bdc151
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/containers/AppWithClusters/useClusterData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function useClusterData() {
export function useAdditionalNodeProps({balancer}: {balancer?: string}) {
const [useClusterBalancerAsBackend] = useSetting<boolean>(USE_CLUSTER_BALANCER_AS_BACKEND_KEY);

const additionalNodesProps = getAdditionalNodesProps({balancer, useClusterBalancerAsBackend});
const additionalNodesProps = getAdditionalNodesProps(balancer, useClusterBalancerAsBackend);

return {additionalNodesProps, useClusterBalancerAsBackend};
}
9 changes: 3 additions & 6 deletions src/utils/additionalProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@ import type {AdditionalNodesProps, NodeAddress} from '../types/additionalProps';

import {getBackendFromRawNodeData} from './prepareBackend';

export const getAdditionalNodesProps = ({
export const getAdditionalNodesProps = (
balancer = backend,
useClusterBalancerAsBackend,
}: {
balancer?: string;
useClusterBalancerAsBackend?: boolean;
}): AdditionalNodesProps => {
useClusterBalancerAsBackend?: boolean,
): AdditionalNodesProps => {
return {
getNodeRef: (node: NodeAddress = {}) =>
getBackendFromRawNodeData(node, balancer ?? '', useClusterBalancerAsBackend),
Expand Down

0 comments on commit 2bdc151

Please sign in to comment.