From fefc3241d9e54f4389b56a68f872a2cf39c49ebc Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Thu, 25 Jul 2024 22:00:15 +1000 Subject: [PATCH] Update TypeConverter.cs --- src/Verify/Splitters/TypeConverter.cs | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/Verify/Splitters/TypeConverter.cs b/src/Verify/Splitters/TypeConverter.cs index 4afdfa1390..0daf9f6f50 100644 --- a/src/Verify/Splitters/TypeConverter.cs +++ b/src/Verify/Splitters/TypeConverter.cs @@ -1,13 +1,7 @@ -class TypeConverter +class TypeConverter( + AsyncConversion conversion, + CanConvert canConvert) { - public AsyncConversion Conversion { get; } - public CanConvert CanConvert { get; } - - public TypeConverter( - AsyncConversion conversion, - CanConvert canConvert) - { - Conversion = conversion; - CanConvert = canConvert; - } + public AsyncConversion Conversion { get; } = conversion; + public CanConvert CanConvert { get; } = canConvert; } \ No newline at end of file