Skip to content

Commit

Permalink
remove unncessary null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ncdiehl committed Apr 2, 2024
1 parent 60b8de0 commit c9acd7c
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions app/src/organisms/ChooseProtocolSlideout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,7 @@ export function ChooseProtocolSlideoutComponent(
}
return parameter
})
if (setRunTimeParametersOverrides != null) {
setRunTimeParametersOverrides(clone)
}
setRunTimeParametersOverrides(clone)
}}
title={runtimeParam.displayName}
caption={runtimeParam.description}
Expand Down Expand Up @@ -267,9 +265,7 @@ export function ChooseProtocolSlideoutComponent(
}
return parameter
})
if (setRunTimeParametersOverrides != null) {
setRunTimeParametersOverrides(clone)
}
setRunTimeParametersOverrides(clone)
}}
/>
)
Expand Down Expand Up @@ -305,9 +301,7 @@ export function ChooseProtocolSlideoutComponent(
return parameter
}
)
if (setRunTimeParametersOverrides != null) {
setRunTimeParametersOverrides(clone)
}
setRunTimeParametersOverrides(clone)
}}
height="0.813rem"
label={
Expand Down Expand Up @@ -344,9 +338,7 @@ export function ChooseProtocolSlideoutComponent(
...parameter,
value: parameter.default,
}))
if (setRunTimeParametersOverrides != null) {
setRunTimeParametersOverrides(clone)
}
setRunTimeParametersOverrides(clone)
}}
paddingBottom={SPACING.spacing10}
{...targetProps}
Expand Down

0 comments on commit c9acd7c

Please sign in to comment.