Skip to content

Commit afcc2ca

Browse files
committed
merge
1 parent 4040b58 commit afcc2ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tranga/Server/v2Manga.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ public partial class Server
129129

130130
float latest = requestParameters.TryGetValue("language", out string? parameter) switch
131131
{
132-
true => float.Parse(manga.Value.mangaConnector.GetChapters(manga.Value, parameter).Max().chapterNumber),
133-
false => float.Parse(manga.Value.mangaConnector.GetChapters(manga.Value).Max().chapterNumber)
132+
true => manga.Value.mangaConnector.GetChapters(manga.Value, parameter).Max().chapterNumber,
133+
false => manga.Value.mangaConnector.GetChapters(manga.Value).Max().chapterNumber
134134
};
135135
return new ValueTuple<HttpStatusCode, object?>(HttpStatusCode.OK, latest);
136136
}

0 commit comments

Comments
 (0)