fix: Use if statement instead of while when checking if SQL read was successful in IcdTimeZoneInfo

This commit is contained in:
Austin Noska
2021-06-30 10:09:58 -04:00
parent fc60e2b675
commit 11c3e33fc1

View File

@@ -171,7 +171,7 @@ namespace ICD.Common.Utils.TimeZoneInfo
{
using (IcdSqliteDataReader reader = cmd.ExecuteReader())
{
while (reader.Read())
if (reader.Read())
{
bool isFixed = reader.GetBoolean(2);
string timeOfDay = reader.GetString(3);
@@ -208,7 +208,7 @@ namespace ICD.Common.Utils.TimeZoneInfo
{
using (IcdSqliteDataReader reader = cmd.ExecuteReader())
{
while (reader.Read())
if (reader.Read())
{
bool isFixed = reader.GetBoolean(2);
string timeOfDay = reader.GetString(3);