feat: go through some TODOs

This commit is contained in:
spiral 2021-11-26 22:02:58 -05:00
parent 04d78e3348
commit 4450ae4214
No known key found for this signature in database
GPG key ID: A6059F0CA0E1BD31
21 changed files with 193 additions and 250 deletions

View file

@ -35,10 +35,6 @@ public class SystemFront
if (system == null) throw Errors.NoSystemError;
ctx.CheckSystemPrivacy(system, system.FrontHistoryPrivacy);
// Gotta be careful here: if we dispose of the connection while the IAE is alive, boom
// todo: this comment was here, but we're not getting a connection here anymore
// hopefully nothing breaks?
var totalSwitches = await _repo.GetSwitchCount(system.Id);
if (totalSwitches == 0) throw Errors.NoRegisteredSwitches;