Skip to content

Commit 3f902ea

Browse files
committed
SqlTranslator: small code improvements
1 parent 0612b81 commit 3f902ea

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Orm/Xtensive.Orm/Sql/Compiler/SqlTranslator.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2003-2022 Xtensive LLC.
1+
// Copyright (C) 2003-2025 Xtensive LLC.
22
// This code is distributed under MIT license terms.
33
// See the License.txt file in the project root for more information.
44

@@ -13,8 +13,6 @@
1313
using Xtensive.Sql.Model;
1414
using Xtensive.Sql.Ddl;
1515
using Xtensive.Sql.Dml;
16-
using Index = Xtensive.Sql.Model.Index;
17-
using System.Runtime.CompilerServices;
1816

1917
namespace Xtensive.Sql.Compiler
2018
{
@@ -1549,10 +1547,10 @@ public virtual void Translate(SqlCompilerContext context, object literalValue)
15491547
case byte[]:
15501548
throw new NotSupportedException(string.Format(Strings.ExTranslationOfLiteralOfTypeXIsNotSupported, literalType.GetShortName()));
15511549
case DateOnly dateOnly:
1552-
output.Append(dateOnly.ToString(DateOnlyFormatString, DateTimeFormat));
1550+
_ = output.Append(dateOnly.ToString(DateOnlyFormatString, DateTimeFormat));
15531551
break;
15541552
case TimeOnly timeOnly:
1555-
output.Append(timeOnly.ToString(TimeOnlyFormatString, DateTimeFormat));
1553+
_ = output.Append(timeOnly.ToString(TimeOnlyFormatString, DateTimeFormat));
15561554
break;
15571555
default:
15581556
_ = output.Append(literalValue.ToString());

0 commit comments

Comments
 (0)