mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 08:10:10 +00:00
Fix compiler warnings CS1998 and CS4014
This commit is contained in:
parent
a078fcdf47
commit
4fe80749c4
5 changed files with 25 additions and 24 deletions
|
|
@ -157,7 +157,7 @@ namespace PluralKit.Bot {
|
|||
.Build();
|
||||
}
|
||||
|
||||
public async Task<Embed> CreateFrontPercentEmbed(SwitchStore.PerMemberSwitchDuration frontpercent, DateTimeZone tz)
|
||||
public Task<Embed> CreateFrontPercentEmbed(SwitchStore.PerMemberSwitchDuration frontpercent, DateTimeZone tz)
|
||||
{
|
||||
var actualPeriod = frontpercent.RangeEnd - frontpercent.RangeStart;
|
||||
var eb = new EmbedBuilder()
|
||||
|
|
@ -186,7 +186,7 @@ namespace PluralKit.Bot {
|
|||
.Aggregate(Duration.Zero, (prod, next) => prod + next.Value)), true);
|
||||
}
|
||||
|
||||
return eb.Build();
|
||||
return Task.FromResult(eb.Build());
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue