chore: Remove the unreachable code block (#7326)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> Co-authored-by: Arpit Mohan <arpit@appsmith.com>
This commit is contained in:
parent
e9fe54fefe
commit
042f9d249a
|
|
@ -159,16 +159,15 @@ const renderRecorderIcon = (
|
|||
switch (recorderStatus) {
|
||||
case RecorderStatusTypes.COMPLETE:
|
||||
return <RecorderCompleteIcon />;
|
||||
break;
|
||||
|
||||
case RecorderStatusTypes.PAUSE:
|
||||
return <RecorderPauseIcon />;
|
||||
break;
|
||||
|
||||
case RecorderStatusTypes.RECORDING:
|
||||
return <RecorderRecordingIcon />;
|
||||
break;
|
||||
|
||||
default:
|
||||
return <RecorderDefaultIcon />;
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -239,7 +238,7 @@ function PlayerButton(props: PlayerButtonProps) {
|
|||
title="play"
|
||||
/>
|
||||
);
|
||||
break;
|
||||
|
||||
case PlayerButtonIntentTypes.PAUSE:
|
||||
return (
|
||||
<Button
|
||||
|
|
@ -251,7 +250,7 @@ function PlayerButton(props: PlayerButtonProps) {
|
|||
title="pause"
|
||||
/>
|
||||
);
|
||||
break;
|
||||
|
||||
case PlayerButtonIntentTypes.STOP:
|
||||
return (
|
||||
<Button
|
||||
|
|
@ -263,7 +262,6 @@ function PlayerButton(props: PlayerButtonProps) {
|
|||
title="stop"
|
||||
/>
|
||||
);
|
||||
break;
|
||||
|
||||
default:
|
||||
return (
|
||||
|
|
@ -276,7 +274,6 @@ function PlayerButton(props: PlayerButtonProps) {
|
|||
title="discard"
|
||||
/>
|
||||
);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -394,7 +391,7 @@ function RecorderRight(props: RecorderRightProps) {
|
|||
/>
|
||||
</>
|
||||
);
|
||||
break;
|
||||
|
||||
case RecorderStatusTypes.COMPLETE:
|
||||
switch (playerStatus) {
|
||||
case PlayerStatusTypes.PLAY:
|
||||
|
|
@ -410,7 +407,6 @@ function RecorderRight(props: RecorderRightProps) {
|
|||
/>
|
||||
</>
|
||||
);
|
||||
break;
|
||||
|
||||
default:
|
||||
return (
|
||||
|
|
@ -425,9 +421,8 @@ function RecorderRight(props: RecorderRightProps) {
|
|||
/>
|
||||
</>
|
||||
);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case RecorderStatusTypes.SAVED:
|
||||
switch (playerStatus) {
|
||||
case PlayerStatusTypes.PLAY:
|
||||
|
|
@ -437,7 +432,7 @@ function RecorderRight(props: RecorderRightProps) {
|
|||
onClick={onPausePlayer}
|
||||
/>
|
||||
);
|
||||
break;
|
||||
|
||||
case PlayerStatusTypes.PAUSE:
|
||||
default:
|
||||
return (
|
||||
|
|
@ -446,13 +441,10 @@ function RecorderRight(props: RecorderRightProps) {
|
|||
onClick={onPlayPlayer}
|
||||
/>
|
||||
);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
return null;
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user