Browse Source
remove some redundant returns (#19137 )
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
pull/19147/head
Simon Cropp
7 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
2 additions and
9 deletions
src/Avalonia.Base/Animation/Animators/BoolAnimator.cs
src/Avalonia.Controls/Automation/Peers/SelectingItemsControlAutomationPeer.cs
src/Markup/Avalonia.Markup.Xaml.Loader/CompilerExtensions/AvaloniaXamlIlLanguageParseIntrinsics.cs
@ -10,8 +10,6 @@
{
if ( progress > = 1d )
return newValue ;
if ( progress > = 0 )
return oldValue ;
return oldValue ;
}
}
@ -48,8 +48,6 @@ namespace Avalonia.Automation.Peers
}
}
}
return result ;
}
return result ;
@ -421,7 +421,7 @@ namespace Avalonia.Markup.Xaml.XamlIl.CompilerExtensions
return ReturnOnParseError ( $"x:Array element {element.Type.GetClrType().Name} is not assignable to the array element type {elementType.Name}" , out result ) ;
}
}
if ( types . AvaloniaList . MakeGenericType ( elementType ) . IsAssignableFrom ( type ) )
{
result = new AvaloniaXamlIlAvaloniaListConstantAstNode ( node , types , type , elementType , nodes ) ;
@ -439,11 +439,8 @@ namespace Avalonia.Markup.Xaml.XamlIl.CompilerExtensions
result = new AvaloniaXamlIlArrayConstantAstNode ( node , listType , elementType , nodes ) ;
return true ;
}
result = null ;
return false ;
}
result = null ;
return false ;
}