Skip to content

Commit 5b21330

Browse files
committed
remove unnecessary lint warning fix
1 parent 610b1f9 commit 5b21330

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

app/src/molecules/Command/LoadCommandText.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const LoadCommandText = ({
3232
robotType,
3333
}: LoadCommandTextProps): JSX.Element | null => {
3434
const { t } = useTranslation('run_details')
35-
35+
3636
switch (command.commandType) {
3737
case 'loadPipette': {
3838
const pipetteModel = getPipetteNameOnMount(

app/src/molecules/Command/MoveLabwareCommandText.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { GRIPPER_WASTE_CHUTE_ADDRESSABLE_AREA } from '@opentrons/shared-data'
33
import { getLabwareName } from './utils'
44
import { getLabwareDisplayLocation } from './utils/getLabwareDisplayLocation'
55
import { getFinalLabwareLocation } from './utils/getFinalLabwareLocation'
6-
76
import type {
87
MoveLabwareRunTimeCommand,
98
RobotType,

app/src/molecules/Command/utils/getLabwareDisplayLocation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ export function getLabwareDisplayLocation(
2222
if (location === 'offDeck') {
2323
return t('off_deck')
2424
} else if ('slotName' in location) {
25-
return isOnDevice === true
25+
return isOnDevice
2626
? location.slotName
2727
: t('slot', { slot_name: location.slotName })
2828
} else if ('addressableAreaName' in location) {
29-
return isOnDevice === true
29+
return isOnDevice
3030
? location.addressableAreaName
3131
: t('slot', { slot_name: location.addressableAreaName })
3232
} else if ('moduleId' in location) {
@@ -39,7 +39,7 @@ export function getLabwareDisplayLocation(
3939
commandTextData,
4040
location.moduleId
4141
)
42-
return isOnDevice === true
42+
return isOnDevice
4343
? `${getModuleDisplayName(moduleModel)}, ${slotName}`
4444
: t('module_in_slot', {
4545
count: getOccludedSlotCountForModule(

0 commit comments

Comments
 (0)