mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 23:59:08 +00:00
chore: linting fixes && github actions for linting (#612)
This commit is contained in:
@@ -17,7 +17,7 @@ export const runtimeTicksToMinutes = (
|
||||
const minutes = Math.floor((ticks % ticksPerHour) / ticksPerMinute);
|
||||
|
||||
if (hours > 0) return `${hours}h ${minutes}m`;
|
||||
else return `${minutes}m`;
|
||||
return `${minutes}m`;
|
||||
};
|
||||
|
||||
export const runtimeTicksToSeconds = (
|
||||
@@ -33,7 +33,7 @@ export const runtimeTicksToSeconds = (
|
||||
const seconds = Math.floor((ticks % ticksPerMinute) / 10000000);
|
||||
|
||||
if (hours > 0) return `${hours}h ${minutes}m ${seconds}s`;
|
||||
else return `${minutes}m ${seconds}s`;
|
||||
return `${minutes}m ${seconds}s`;
|
||||
};
|
||||
|
||||
// t: ms
|
||||
@@ -66,9 +66,8 @@ export const formatTimeString = (
|
||||
|
||||
if (hours > 0) {
|
||||
return `${hours}h ${minutes}m ${remainingSeconds}s`;
|
||||
} else {
|
||||
return `${minutes}m ${remainingSeconds}s`;
|
||||
}
|
||||
return `${minutes}m ${remainingSeconds}s`;
|
||||
};
|
||||
|
||||
export const secondsToTicks = (seconds?: number | undefined) => {
|
||||
|
||||
Reference in New Issue
Block a user