From 7a3903a2d2d712d83d9b7c318f57159194b1c23f Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sat, 7 Jan 2023 14:16:05 +0800 Subject: [PATCH] Code optimization --- .../SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs | 2 +- Src/Asp.Net/SqlSugar/SpliteTable/SplitTableContext.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs index c0d130f73..26da919cf 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs @@ -436,7 +436,7 @@ namespace SqlSugar var lamResult = DeleteBuilder.GetExpressionValue(inField, ResolveExpressType.FieldSingle); var fieldName = lamResult.GetResultString(); tempPrimaryKeys = new List() { fieldName }; - var result = In(primaryKeyValue);; + var result = In(primaryKeyValue); tempPrimaryKeys = null; return this; } diff --git a/Src/Asp.Net/SqlSugar/SpliteTable/SplitTableContext.cs b/Src/Asp.Net/SqlSugar/SpliteTable/SplitTableContext.cs index 8fac07b99..f222a4c6b 100644 --- a/Src/Asp.Net/SqlSugar/SpliteTable/SplitTableContext.cs +++ b/Src/Asp.Net/SqlSugar/SpliteTable/SplitTableContext.cs @@ -26,7 +26,7 @@ namespace SqlSugar } public string[] GetTableNames(SplitType splitType) { - List result = new List();; + List result = new List(); foreach (var item in Items) { result.Add(Helper.GetTableName(Helper.GetValue(splitType, item)));