Skip to content

Commit

Permalink
Small tweak to IsInstalled functionality for EGS and GOG
Browse files Browse the repository at this point in the history
  • Loading branch information
beeradmoore committed Oct 16, 2022
1 parent eebfad8 commit 122ad47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ internal class EpicGameStoreLibrary : IGameLibrary

public bool IsInstalled()
{
if (String.IsNullOrEmpty(GetEpicRootDirectory()))
{
return false;
}
return true;
return String.IsNullOrEmpty(GetEpicRootDirectory()) == false;
}

public async Task<List<Game>> ListGamesAsync()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal class GOGGalaxyLibrary : IGameLibrary

public bool IsInstalled()
{
return GetStorageFileLocation() != null;
return String.IsNullOrEmpty(GetStorageFileLocation()) == false;
}

public async Task<List<Game>> ListGamesAsync()
Expand Down

0 comments on commit 122ad47

Please sign in to comment.