mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-18 08:43:57 +00:00
chore: remove possibility of null returning
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user