Skip to content

Commit

Permalink
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.
  • Loading branch information
ArturDorochowicz committed Nov 18, 2024
1 parent 4e3197b commit 4c29d24
Show file tree
Hide file tree
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
Expand Up @@ -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()
{
Expand Down
2 changes: 2 additions & 0 deletions src/Oakton/Internal/Conversion/DateTimeConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

namespace Oakton.Internal.Conversion;

#nullable disable annotations // FIXME

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

namespace Oakton.Internal.Conversion;

#nullable disable annotations // FIXME

public class TimeSpanConverter
{
private const string TimespanPattern =
Expand Down

0 comments on commit 4c29d24

Please sign in to comment.