Skip to content

Commit

Permalink
make static
Browse files Browse the repository at this point in the history
  • Loading branch information
AnakinRaW committed Aug 3, 2024
1 parent 5b5ba5b commit 0ea1629
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ internal class SteamLibrary : ISteamLibrary

private readonly Dictionary<KnownLibraryLocations, string[]> _locationsNames = new()
{
{ KnownLibraryLocations.SteamApps, new[] { "steamapps" } },
{ KnownLibraryLocations.Common, new[] { "steamapps", "common" } },
{ KnownLibraryLocations.Workshops, new[] { "steamapps", "workshop" } }
{ KnownLibraryLocations.SteamApps, ["steamapps"] },
{ KnownLibraryLocations.Common, ["steamapps", "common"] },
{ KnownLibraryLocations.Workshops, ["steamapps", "workshop"] }
};

private readonly string _normalizedLocation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal class WindowHandleInfo(IntPtr handle)
{
public List<IntPtr> GetAllChildHandles()
{
List<IntPtr> childHandles = new();
List<IntPtr> childHandles = [];

var gcChildHandlesList = GCHandle.Alloc(childHandles);
var pointerChildHandlesList = GCHandle.ToIntPtr(gcChildHandlesList);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace AET.SteamAbstraction;
/// <summary>
/// Provides initialization routines for this library.
/// </summary>
public class SteamAbstractionLayer
public static class SteamAbstractionLayer
{
/// <summary>
/// Adds services provided by this library to the given <paramref name="serviceCollection"/>
Expand Down

0 comments on commit 0ea1629

Please sign in to comment.