Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger committed Mar 14, 2024
1 parent 24c5839 commit 6f9bec4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions ActiveDirectoryQuerier/Queries/CustomQueries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,8 @@ public void SaveQueriesToJson()
try
{
string serializedJsonQueries = JsonSerializer.Serialize(Queries, _options);
if(CustomQueryFileLocation == "")
{
File.WriteAllText("CustomQueries.json", serializedJsonQueries);

} else
{
File.WriteAllText(CustomQueryFileLocation, serializedJsonQueries);
}
File.WriteAllText(CustomQueryFileLocation == "" ? "CustomQueries.json" : CustomQueryFileLocation,
serializedJsonQueries);
}
catch (Exception ex)
{
Expand Down

0 comments on commit 6f9bec4

Please sign in to comment.