Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pragmas as needed in Internal.Conversions
Browse files Browse the repository at this point in the history
Some files already used nullable reference types. They don't need disable annotations pragma.
ArturDorochowicz committed Nov 18, 2024
1 parent 43217d2 commit af5bdb2
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Oakton/Internal/Conversion/Conversions.cs
Original file line number Diff line number Diff line change
@@ -7,9 +7,10 @@ namespace Oakton.Internal.Conversion;

public class Conversions
{
#nullable disable annotations // FIXME
private readonly LightweightCache<Type, Func<string, object>> _convertors;
private readonly IList<IConversionProvider> _providers = new List<IConversionProvider>();

#nullable restore

public Conversions()
{
2 changes: 2 additions & 0 deletions src/Oakton/Internal/Conversion/DateTimeConverter.cs
Original file line number Diff line number Diff line change
@@ -5,6 +5,8 @@

namespace Oakton.Internal.Conversion;

#nullable disable annotations // FIXME

public class DateTimeConverter
{
public const string TODAY = "TODAY";
2 changes: 2 additions & 0 deletions src/Oakton/Internal/Conversion/TimeSpanConverter.cs
Original file line number Diff line number Diff line change
@@ -4,6 +4,8 @@

namespace Oakton.Internal.Conversion;

#nullable disable annotations // FIXME

public class TimeSpanConverter
{
private const string TimespanPattern =

0 comments on commit af5bdb2

Please sign in to comment.