Skip to content

Commit 7ee414e

Browse files
committed
Fix formatting
1 parent 0d52be3 commit 7ee414e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

cpp/src/gandiva/encrypt_utils.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const EVP_CIPHER* get_cipher_algo(int32_t key_length) {
3333
throw std::runtime_error("unsupported key length: " + std::to_string(key_length));
3434
}
3535
}
36-
} // namespace
36+
} // namespace
3737

3838
namespace gandiva {
3939
GANDIVA_EXPORT

cpp/src/gandiva/gdv_function_stubs.cc

+6-2
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,9 @@ const char* gdv_fn_aes_encrypt(int64_t context, const char* data, int32_t data_l
320320
if (key_data_len == 16 || key_data_len == 24 || key_data_len == 32) {
321321
kAesBlockSize = static_cast<int64_t>(key_data_len);
322322
} else {
323-
gdv_fn_context_set_error_msg(context, (std::string("invalid key length: ") + std::to_string(key_data_len)).c_str());
323+
gdv_fn_context_set_error_msg(
324+
context,
325+
(std::string("invalid key length: ") + std::to_string(key_data_len)).c_str());
324326
*out_len = 0;
325327
return nullptr;
326328
}
@@ -362,7 +364,9 @@ const char* gdv_fn_aes_decrypt(int64_t context, const char* data, int32_t data_l
362364
if (key_data_len == 16 || key_data_len == 24 || key_data_len == 32) {
363365
kAesBlockSize = static_cast<int64_t>(key_data_len);
364366
} else {
365-
gdv_fn_context_set_error_msg(context, (std::string("invalid key length: ") + std::to_string(key_data_len)).c_str());
367+
gdv_fn_context_set_error_msg(
368+
context,
369+
(std::string("invalid key length: ") + std::to_string(key_data_len)).c_str());
366370
*out_len = 0;
367371
return nullptr;
368372
}

0 commit comments

Comments
 (0)