aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgFileOpera.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/function/gpg/GpgFileOpera.cpp')
-rw-r--r--src/core/function/gpg/GpgFileOpera.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/function/gpg/GpgFileOpera.cpp b/src/core/function/gpg/GpgFileOpera.cpp
index bf416880..f1b1d1c9 100644
--- a/src/core/function/gpg/GpgFileOpera.cpp
+++ b/src/core/function/gpg/GpgFileOpera.cpp
@@ -245,10 +245,11 @@ auto GpgFrontend::GpgFileOpera::EncryptFileSymmetric(
auto err = GpgBasicOperator::GetInstance(_channel).EncryptSymmetric(
in_buffer, out_buffer, result);
- if (CheckGpgError(err) == GPG_ERR_NO_ERROR)
+ if (CheckGpgError(err) == GPG_ERR_NO_ERROR) {
if (!FileOperator::WriteFileStd(out_path_std, *out_buffer)) {
throw std::runtime_error("WriteBufferToFile error");
- };
+ }
+ };
return err;
}