Skip to content

Commit 2321367

Browse files
committed
Get rid of IsNullReference() in modified lines
1 parent efcd342 commit 2321367

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Orm/Xtensive.Orm/Sql/Dml/Statements/SqlDelete.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ internal override SqlDelete Clone(SqlNodeCloneContext context) =>
6767
clone.Delete = t.Delete.Clone(c);
6868
if (t.from != null)
6969
clone.From = (SqlQueryRef) t.from.Clone(c);
70-
if (!t.where.IsNullReference())
70+
if (t.where is not null)
7171
clone.Where = t.where.Clone(c);
7272

7373
if (t.Hints.Count > 0)

Orm/Xtensive.Orm/Sql/Dml/Statements/SqlUpdate.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ internal override SqlUpdate Clone(SqlNodeCloneContext context) =>
7777
foreach (KeyValuePair<ISqlLValue, SqlExpression> p in t.values)
7878
clone.Values[(ISqlLValue) ((SqlExpression) p.Key).Clone(c)] =
7979
p.Value?.Clone(c);
80-
if (!t.where.IsNullReference())
80+
if (t.where is not null)
8181
clone.Where = t.where.Clone(c);
82-
if (!t.limit.IsNullReference())
82+
if (t.limit is not null)
8383
clone.Limit = t.where.Clone(c);
8484
if (t.Hints.Count > 0)
8585
foreach (SqlHint hint in t.Hints)

0 commit comments

Comments
 (0)