Skip to content

Commit

Permalink
Fix JSONConfiguration not checking path properly
Browse files Browse the repository at this point in the history
Closes #460
  • Loading branch information
Deadpikle committed Jun 4, 2023
1 parent 2a40ea6 commit 5212cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NetSparkle/Configurations/JSONConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public JSONConfiguration(IAssemblyAccessor assemblyAccessor)
public JSONConfiguration(IAssemblyAccessor assemblyAccessor, string savePath)
: base(assemblyAccessor)
{
_savePath = savePath != null && string.IsNullOrWhiteSpace(savePath) ? savePath : GetSavePath();
_savePath = savePath != null && !string.IsNullOrWhiteSpace(savePath) ? savePath : GetSavePath();
try
{
// get the save path
Expand Down

0 comments on commit 5212cd2

Please sign in to comment.