Skip to content

Commit

Permalink
#659 Simplified new operator is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
axivionsee committed Nov 15, 2023
1 parent 940cfa7 commit d26ebdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/SEE/Controls/KeyBindings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static class KeyBindings
/// <summary>
/// The registered keyboard shortcuts. The value is a help message on the shortcut.
/// </summary>
private static readonly Dictionary<KeyCode, string> bindings = new Dictionary<KeyCode, string>();
private static readonly Dictionary<KeyCode, string> bindings = new();

/// <summary>
/// Categories for the keyboard shortcuts.
Expand Down Expand Up @@ -80,7 +80,7 @@ internal static void PrintBindings()
/// </summary>
public static string GetBindingsText()
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
System.Text.StringBuilder sb = new();
foreach (var binding in bindings)
{
sb.Append($"Key {binding.Key}:\n {binding.Value}\n\n");
Expand Down

0 comments on commit d26ebdd

Please sign in to comment.