Skip to content

Commit d2b17d4

Browse files
committed
format code
Signed-off-by: alexsehep <[email protected]>
1 parent 84bb690 commit d2b17d4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/common/function/FunctionManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3012,8 +3012,8 @@ FunctionManager::FunctionManager() {
30123012
return Value::kNullValue;
30133013
}
30143014
case Value::Type::STRING: {
3015-
std::string value(args[0].get().getStr());
3016-
return proxygen::md5Encode(folly::StringPiece(value));
3015+
std::string value(args[0].get().getStr());
3016+
return proxygen::md5Encode(folly::StringPiece(value));
30173017
}
30183018
default: {
30193019
return Value::kNullBadType;

src/common/function/test/FunctionManagerTest.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,7 @@ TEST_F(FunctionManagerTest, functionCall) {
475475
args_["json_extract4"],
476476
Value(Map({{"a", Value("foo")}, {"b", Value(0.2)}, {"c", Value(Map())}})));
477477
}
478-
{
479-
TEST_FUNCTION(md5, args_["md5"], "9fc9d606912030dca86582ed62595cf7");
480-
}
478+
{ TEST_FUNCTION(md5, args_["md5"], "9fc9d606912030dca86582ed62595cf7"); }
481479
{
482480
auto result = FunctionManager::get("hash", 1);
483481
ASSERT_TRUE(result.ok());

0 commit comments

Comments
 (0)