Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Thundernerd committed Feb 1, 2024
1 parent c0bbc0e commit b0a703c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private DateTime GetPostDateOfChapter(IHtmlListItemElement element)
}
}

private async Task<Result<string>> GetPageContent(string url, CancellationToken ct)
private async Task<Result<string>> GetPageContent(string url, CancellationToken ct = default)
{
Result<string> result;

Expand Down Expand Up @@ -207,7 +207,7 @@ private async Task<Result<string>> GetPageContent(string url, CancellationToken
return result;
}

private async Task<Result<string>> GetChapterId(string url, CancellationToken ct)
private async Task<Result<string>> GetChapterId(string url, CancellationToken ct = default)
{
Result<string> result = await GetHttpClient().Get(url, ct);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CachingService cachingService

protected override Task<Result<string>> Status() => Task.FromResult(Result.Ok("OK"));

private async Task<Result<string>> GetSearchHtml(CancellationToken ct)
private async Task<Result<string>> GetSearchHtml(CancellationToken ct = default)
{
string key = Id + "_search";

Expand All @@ -53,7 +53,7 @@ private async Task<Result<string>> GetSearchHtml(CancellationToken ct)
return Result.Ok(result.Value);
}

private async Task<Result<MangaData.Item[]>> GetMangaDataItems(CancellationToken ct)
private async Task<Result<MangaData.Item[]>> GetMangaDataItems(CancellationToken ct = default)
{
string key = Id + "_mangadataitems";

Expand Down

0 comments on commit b0a703c

Please sign in to comment.