Simplify conditional.
Co-authored-by: Renxuan Wang <renxuan@apple.com>
This commit is contained in:
parent
b50886b10a
commit
a1eca85b66
|
@ -755,10 +755,8 @@ inline Reference<IBackupContainer> Codec<Reference<IBackupContainer>>::unpack(Tu
|
|||
}
|
||||
|
||||
Optional<std::string> proxy;
|
||||
if (val.size() > 2) {
|
||||
if (!val.getString(2).empty()) {
|
||||
proxy = val.getString(2).toString();
|
||||
};
|
||||
if (val.size() > 2 && !val.getString(2).empty()) {
|
||||
proxy = val.getString(2).toString();
|
||||
}
|
||||
|
||||
return IBackupContainer::openContainer(url, proxy, encryptionKeyFileName);
|
||||
|
|
Loading…
Reference in New Issue