chore: remove possibility of null returning

This commit is contained in:
Hachi-R 2024-11-06 19:18:36 -03:00
parent d4b1569892
commit f555890b4c

View File

@ -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() {