mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 21:44:55 +03:00
chore: remove possibility of null returning
This commit is contained in:
parent
d4b1569892
commit
f555890b4c
@ -61,9 +61,9 @@ export class PythonInstance {
|
||||
}
|
||||
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user