Additional formatting tweaks (#5909)

This commit is contained in:
Clint Rutkas
2020-08-13 15:32:12 -07:00
committed by GitHub
parent 38b0d427f8
commit 23a9fa40e7
15 changed files with 129 additions and 137 deletions

View File

@@ -16,7 +16,11 @@ namespace PowerLauncher.Storage
public void Add(string query)
{
if (string.IsNullOrEmpty(query)) return;
if (string.IsNullOrEmpty(query))
{
return;
}
if (Items.Count > _maxHistory)
{
Items.RemoveAt(0);
@@ -31,7 +35,7 @@ namespace PowerLauncher.Storage
Items.Add(new HistoryItem
{
Query = query,
ExecutedDateTime = DateTime.Now
ExecutedDateTime = DateTime.Now,
});
}
}