mirror of
https://github.com/iterate-ch/cyberduck.git
synced 2026-05-26 19:10:49 +00:00
Fix no such element with empty optional.
This commit is contained in:
+1
-2
@@ -108,8 +108,7 @@ public class CryptoCopyFeature implements Copy {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
new DefaultCopyFeature(session).withTarget(target).preflight(
|
new DefaultCopyFeature(session).withTarget(target).preflight(
|
||||||
vault.contains(source) ? vault.encrypt(session, source) : source,
|
vault.contains(source) ? vault.encrypt(session, source) : source, copy);
|
||||||
vault.contains(copy.get()) ? Optional.of(vault.encrypt(session, copy.get())) : copy);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-2
@@ -108,8 +108,7 @@ public class CryptoCopyFeature implements Copy {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
new DefaultCopyFeature(session).withTarget(target).preflight(
|
new DefaultCopyFeature(session).withTarget(target).preflight(
|
||||||
vault.contains(source) ? vault.encrypt(session, source) : source,
|
vault.contains(source) ? vault.encrypt(session, source) : source, copy);
|
||||||
vault.contains(copy.get()) ? Optional.of(vault.encrypt(session, copy.get())) : copy);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user