Skip to content

Commit

Permalink
Merge pull request #69191 from raulsntos/dotnet/no-throw
Browse files Browse the repository at this point in the history
Fix `VariantUtils.UnsupportedType` method throwing
  • Loading branch information
neikeq authored Nov 26, 2022
2 parents 50badbd + cfab6b0 commit 68e3f49
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Godot.NativeInterop;

public partial class VariantUtils
{
private static Exception UnsupportedType<T>() => throw new InvalidOperationException(
private static Exception UnsupportedType<T>() => new InvalidOperationException(
$"The type is not supported for conversion to/from Variant: '{typeof(T).FullName}'");

internal static class GenericConversion<T>
Expand Down

0 comments on commit 68e3f49

Please sign in to comment.