Skip to content

Commit

Permalink
修改结果筛选器导出单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
hueifeng committed Oct 29, 2020
1 parent 14fd342 commit 539d8c2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ public class ImportResultFilterTest : IImportResultFilter

foreach (var item in importResult.Data)
{
var item1 = item as ImportResultFilterDataDto1;
//判断两个列是否重复,如果重复则提示 https://github.com/dotnetcore/Magicodes.IE/issues/144
if (item1.Code == item1.Name)
if (item is ImportResultFilterDataDto1 item1 && item1.Code == item1.Name)
{
items.Add(new DataRowErrorInfo()
{
Expand Down

0 comments on commit 539d8c2

Please sign in to comment.