Skip to content

Commit a39949f

Browse files
committed
refactor
1 parent 9ea7553 commit a39949f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/TableStorage.Abstractions.POCO/PocoTableStore.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,7 @@ public Task<bool> TableExistsAsync()
404404
/// <exception cref="ArgumentNullException">record</exception>
405405
public async Task InsertAsync(T record)
406406
{
407-
if (record == null)
408-
throw new ArgumentNullException(nameof(record));
407+
if (record == null) throw new ArgumentNullException(nameof(record));
409408

410409
var entity = CreateEntity(record);
411410

@@ -743,7 +742,10 @@ public async Task<IEnumerable<T>> GetByRowKeyAsync(string rowKey, Func<T, bool>
743742
var records = CreateRecords(await _tableStore.GetByRowKeyAsync(rowKey).ConfigureAwait(false));
744743

745744
if (filter != null)
745+
{
746746
records = records.Where(filter);
747+
}
748+
747749

748750
return records;
749751
}

0 commit comments

Comments
 (0)