From d8a35387881bf408c19deeba7b5e3648dbbf467c Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Fri, 26 Nov 2021 12:03:19 +0100 Subject: [PATCH] [clang][deps] NFC: Remove else after early return --- .../DependencyScanning/DependencyScanningFilesystem.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp b/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp index 40e8bd2b8776..5f3e6480eba4 100644 --- a/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp +++ b/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp @@ -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));