[clang][deps] NFC: Remove else after early return
authorJan Svoboda <jan_svoboda@apple.com>
Fri, 26 Nov 2021 11:03:19 +0000 (12:03 +0100)
committerJan Svoboda <jan_svoboda@apple.com>
Fri, 26 Nov 2021 11:18:37 +0000 (12:18 +0100)
clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp

index 40e8bd2..5f3e648 100644 (file)
@@ -191,8 +191,7 @@ DependencyScanningWorkerFilesystem::getOrCreateFileSystemEntry(
           //   files before building them, and then looks for them again. If we
           //   cache the stat failure, it won't see them the second time.
           return MaybeStatus.getError();
-        else
-          CacheEntry = CachedFileSystemEntry(MaybeStatus.getError());
+        CacheEntry = CachedFileSystemEntry(MaybeStatus.getError());
       } else if (MaybeStatus->isDirectory())
         CacheEntry = CachedFileSystemEntry::createDirectoryEntry(
             std::move(*MaybeStatus));