Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Commit 043bed9

Browse files
committed
Updated logic.
1 parent 72a616c commit 043bed9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Todo/Todo/Data/TodoItemDatabase.cs

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ async Task InitializeAsync()
2727
{
2828
if (!Database.TableMappings.Any(m => m.MappedType.Name == typeof(TodoItem).Name))
2929
{
30-
await Database.CreateTablesAsync(CreateFlags.None, typeof(TodoItem)).ConfigureAwait(false);
31-
initialized = true;
30+
await Database.CreateTablesAsync(CreateFlags.None, typeof(TodoItem)).ConfigureAwait(false);
3231
}
32+
initialized = true;
3333
}
3434
}
3535

0 commit comments

Comments
 (0)