Skip to content

Commit

Permalink
CodeQuality: Removed CheckFolderAccessWithWin32 from sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 committed Jan 14, 2024
1 parent d7ed905 commit e0d9dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Files.App/Data/Models/SidebarPinnedModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public async Task<LocationItem> CreateLocationItemFromPathAsync(string path)
locationItem.IsDefaultLocation = false;
locationItem.Text = res.Result?.DisplayName ?? Path.GetFileName(path.TrimEnd('\\'));

if (res || (FilesystemResult)FolderHelpers.CheckFolderAccessWithWin32(path))
if (res)
{
locationItem.IsInvalid = false;
if (res && res.Result is not null)
Expand Down

0 comments on commit e0d9dfd

Please sign in to comment.