diff --git a/src/Files.Uwp/Filesystem/StorageEnumerators/UniversalStorageEnumerator.cs b/src/Files.Uwp/Filesystem/StorageEnumerators/UniversalStorageEnumerator.cs index 046288f9443d..cc8e75bdcd71 100644 --- a/src/Files.Uwp/Filesystem/StorageEnumerators/UniversalStorageEnumerator.cs +++ b/src/Files.Uwp/Filesystem/StorageEnumerators/UniversalStorageEnumerator.cs @@ -231,13 +231,8 @@ CancellationToken cancellationToken return null; } - if (file.Name.EndsWith(".lnk", StringComparison.Ordinal) || file.Name.EndsWith(".url", StringComparison.Ordinal)) - { - // This shouldn't happen, StorageFile api does not support shortcuts - Debug.WriteLine("Something strange: StorageFile api returned a shortcut"); - } // TODO: is this needed to be handled here? - else if (App.LibraryManager.TryGetLibrary(file.Path, out LibraryLocationItem library)) + if (App.LibraryManager.TryGetLibrary(file.Path, out LibraryLocationItem library)) { return new LibraryItem(library) {