mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 09:16:38 +00:00
Remove eslint comments from tsx file
Change-type: patch
This commit is contained in:
parent
e7f58fc7fa
commit
9913030e6f
@ -78,7 +78,6 @@ const flashImageToDrive = async (goToSuccess: () => void) => {
|
|||||||
return _.includes(devices, drive.device);
|
return _.includes(devices, drive.device);
|
||||||
});
|
});
|
||||||
|
|
||||||
// eslint-disable-next-line no-magic-numbers
|
|
||||||
if (drives.length === 0 || flashState.isFlashing()) {
|
if (drives.length === 0 || flashState.isFlashing()) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
@ -155,9 +154,7 @@ const formatSeconds = (totalSeconds: number) => {
|
|||||||
if (!totalSeconds && !_.isNumber(totalSeconds)) {
|
if (!totalSeconds && !_.isNumber(totalSeconds)) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line no-magic-numbers
|
|
||||||
const minutes = Math.floor(totalSeconds / 60);
|
const minutes = Math.floor(totalSeconds / 60);
|
||||||
// eslint-disable-next-line no-magic-numbers
|
|
||||||
const seconds = Math.floor(totalSeconds - minutes * 60);
|
const seconds = Math.floor(totalSeconds - minutes * 60);
|
||||||
|
|
||||||
return `${minutes}m${seconds}s`;
|
return `${minutes}m${seconds}s`;
|
||||||
@ -205,7 +202,6 @@ export const Flash = ({ shouldFlashStepBeDisabled, goToSuccess }: any) => {
|
|||||||
return _.includes(devices, drive.device);
|
return _.includes(devices, drive.device);
|
||||||
});
|
});
|
||||||
|
|
||||||
// eslint-disable-next-line no-magic-numbers
|
|
||||||
if (drives.length === 0 || flashState.isFlashing()) {
|
if (drives.length === 0 || flashState.isFlashing()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -276,7 +272,6 @@ export const Flash = ({ shouldFlashStepBeDisabled, goToSuccess }: any) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* eslint-disable-next-line no-magic-numbers */}
|
|
||||||
{warningMessages && warningMessages.length > 0 && (
|
{warningMessages && warningMessages.length > 0 && (
|
||||||
<Modal
|
<Modal
|
||||||
width={400}
|
width={400}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user