mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[chore] fix lint errors
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { BsvMapDetail } from "shared/models/maps";
|
||||
|
||||
export function getMapZipUrlFromMapDetails(map: BsvMapDetail){
|
||||
const hash = map.versions.at(0).hash;
|
||||
const { hash } = map.versions.at(0);
|
||||
return getMapZipUrlFromHash(hash);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
const SECONDS_IN_MINUTE = 60;
|
||||
const MINUTES_IN_HOUR = 60;
|
||||
|
||||
export function min_to_s(minutes: number): number{
|
||||
export function minToS(minutes: number): number{
|
||||
return minutes * SECONDS_IN_MINUTE;
|
||||
}
|
||||
|
||||
export function hour_to_min(hours: number): number{
|
||||
export function hourToMin(hours: number): number{
|
||||
return hours * MINUTES_IN_HOUR;
|
||||
}
|
||||
|
||||
export function hour_to_s(hours: number): number{
|
||||
return hours * min_to_s(MINUTES_IN_HOUR);
|
||||
export function hourToS(hours: number): number{
|
||||
return hours * minToS(MINUTES_IN_HOUR);
|
||||
}
|
||||
Reference in New Issue
Block a user