[NFC][clang-offload-bundler] Simplify main function (#138555)

Applied "no else after return" rule from the LLVM's Coding Standards
https://llvm.org/docs/CodingStandards.html#don-t-use-else-after-a-return
This commit is contained in:
Alexey Bader 2025-05-05 20:01:42 -07:00 committed by GitHub
parent 425340511f
commit 3f1267e1b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -426,12 +426,9 @@ int main(int argc, const char **argv) {
OffloadBundler Bundler(BundlerConfig);
return doWork([&]() {
if (Unbundle) {
if (BundlerConfig.FilesType == "a")
return Bundler.UnbundleArchive();
else
return Bundler.UnbundleFiles();
} else
return Bundler.BundleFiles();
if (Unbundle)
return (BundlerConfig.FilesType == "a") ? Bundler.UnbundleArchive()
: Bundler.UnbundleFiles();
return Bundler.BundleFiles();
});
}