mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
chore: remove possibility of null returning
This commit is contained in:
parent
d4b1569892
commit
f555890b4c
1 changed files with 2 additions and 2 deletions
|
@ -61,9 +61,9 @@ export class PythonInstance {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static async getSeedingList() {
|
public static async getSeedingList() {
|
||||||
const response = await this.rpc.get<LibtorrentPayload | null>("/status");
|
const response = await this.rpc.get<LibtorrentPayload>("/status");
|
||||||
|
|
||||||
return response.data?.seeding || [];
|
return response.data.seeding;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static async getStatus() {
|
public static async getStatus() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue