Skip to content

Commit

Permalink
fix(converters): allow nullable return type in Convert method
Browse files Browse the repository at this point in the history
Updated the `Convert` method in the `DivisionMathConverter` class to return a nullable object type (`object?`) instead of a non-nullable object. This change allows the method to explicitly return `null` as a valid value.
  • Loading branch information
realybin committed Jan 22, 2025
1 parent c3145b4 commit 6e3f5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SketchNow/Converters/DivisionMathConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace SketchNow.Converters
{
public class DivisionMathConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
public object? Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value == null || parameter == null)
return null;
Expand Down

0 comments on commit 6e3f5e1

Please sign in to comment.