mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
fix: Use if statement instead of while when checking if SQL read was successful in IcdTimeZoneInfo
This commit is contained in:
parent
fc60e2b675
commit
11c3e33fc1
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue