Skip to content

Commit

Permalink
fix code smell for App.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineatstariongroup committed Dec 6, 2024
1 parent dc68b3d commit 063a426
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions EA-ModelKit/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public class App
/// <summary>
/// Stores the location of the assembly, used to resolve other dependencies
/// </summary>
private static string assemblyLocation;
private static string assemblyLocation = Path.GetDirectoryName(typeof(App).Assembly.Location)!;

/// <summary>
/// Initializes a new instance of the <see cref="App" /> class.
Expand All @@ -92,8 +92,6 @@ public App()
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture;
AppDomain.CurrentDomain.AssemblyResolve += CurrentDomainOnAssemblyResolve;

assemblyLocation = Path.GetDirectoryName(typeof(App).Assembly.Location)!;
Directory.SetCurrentDirectory(assemblyLocation);

Log.Logger = new LoggerConfiguration()
Expand Down

0 comments on commit 063a426

Please sign in to comment.