Skip to content

Commit 560c0f2

Browse files
Update CommandParser.cs
1 parent e155be8 commit 560c0f2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/ImageSharp.Web/Commands/CommandParser.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Six Labors.
1+
// Copyright (c) Six Labors.
22
// Licensed under the Apache License, Version 2.0.
33

44
using System;
@@ -63,10 +63,7 @@ private CommandParser()
6363
/// <returns>The converted instance or the default.</returns>
6464
public T ParseValue<T>(string value, CultureInfo culture)
6565
{
66-
if (culture == null)
67-
{
68-
culture = CultureInfo.InvariantCulture;
69-
}
66+
culture ??= CultureInfo.InvariantCulture;
7067

7168
Type type = typeof(T);
7269
ICommandConverter converter = CommandDescriptor.GetConverter(type);

0 commit comments

Comments
 (0)