Fix `VariantUtils.UnsupportedType` method throwing

This method was not supposed to throw, just return the new constructed
exception so it can be thrown by the caller.
This commit is contained in:
Raul Santos 2022-11-26 03:05:00 +01:00
parent c7ceb94e37
commit cfab6b0566
No known key found for this signature in database
GPG Key ID: B532473AE3A803E4
1 changed files with 1 additions and 1 deletions

View File

@ -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>