chore: lint

This commit is contained in:
Iris System 2022-11-23 03:13:33 +13:00
parent 9153c26425
commit b2bfe93013

View File

@ -107,7 +107,7 @@ public class Autoproxy
AutoproxyMode.Front => fronters.Count > 0 ? fronters[0] : null, AutoproxyMode.Front => fronters.Count > 0 ? fronters[0] : null,
AutoproxyMode.Member when settings.AutoproxyMember.HasValue => await ctx.Repository.GetMember(settings.AutoproxyMember.Value), AutoproxyMode.Member when settings.AutoproxyMember.HasValue => await ctx.Repository.GetMember(settings.AutoproxyMember.Value),
AutoproxyMode.Latch when settings.AutoproxyMember.HasValue && ctx.Config.LatchTimeout == 0 => await ctx.Repository.GetMember(settings.AutoproxyMember.Value), AutoproxyMode.Latch when settings.AutoproxyMember.HasValue && ctx.Config.LatchTimeout == 0 => await ctx.Repository.GetMember(settings.AutoproxyMember.Value),
AutoproxyMode.Latch when settings.AutoproxyMember.HasValue => AutoproxyMode.Latch when settings.AutoproxyMember.HasValue =>
_clock.GetCurrentInstant() - settings.LastLatchTimestamp > latchTimeout _clock.GetCurrentInstant() - settings.LastLatchTimestamp > latchTimeout
? null ? null
: await ctx.Repository.GetMember(settings.AutoproxyMember.Value), : await ctx.Repository.GetMember(settings.AutoproxyMember.Value),