mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: refactor
This commit is contained in:
parent
b8bd786c45
commit
aa253466a3
12 changed files with 19 additions and 19 deletions
|
@ -8,6 +8,13 @@ export enum DownloadSourceStatus {
|
|||
Errored,
|
||||
}
|
||||
|
||||
export class UserNotLoggedInError extends Error {
|
||||
constructor() {
|
||||
super("user not logged in");
|
||||
this.name = "UserNotLoggedInError";
|
||||
}
|
||||
}
|
||||
|
||||
const FORMAT = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
||||
|
||||
export const formatBytes = (bytes: number): string => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue