[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:
parent
425340511f
commit
3f1267e1b3
@ -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();
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user