Clean up warnings/hints in solution

This commit is contained in:
jvyden 2021-10-10 18:12:34 -04:00
commit 6c97a0cd39
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
7 changed files with 21 additions and 6 deletions

View file

@ -60,6 +60,7 @@ namespace ProjectLighthouse.Controllers {
using(XmlReader reader = XmlReader.Create(Request.Body, settings)) {
List<string> path = new(); // you can think of this as a file path in the XML, like <updateUser> -> <location> -> <x>
while(await reader.ReadAsync()) {
// ReSharper disable once SwitchStatementMissingSomeEnumCasesNoDefault
switch(reader.NodeType) {
case XmlNodeType.Element:
path.Add(reader.Name);