We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e155be8 commit 560c0f2Copy full SHA for 560c0f2
src/ImageSharp.Web/Commands/CommandParser.cs
@@ -1,4 +1,4 @@
1
-// Copyright (c) Six Labors.
+// Copyright (c) Six Labors.
2
// Licensed under the Apache License, Version 2.0.
3
4
using System;
@@ -63,10 +63,7 @@ private CommandParser()
63
/// <returns>The converted instance or the default.</returns>
64
public T ParseValue<T>(string value, CultureInfo culture)
65
{
66
- if (culture == null)
67
- {
68
- culture = CultureInfo.InvariantCulture;
69
- }
+ culture ??= CultureInfo.InvariantCulture;
70
71
Type type = typeof(T);
72
ICommandConverter converter = CommandDescriptor.GetConverter(type);
0 commit comments