Skip to content

Commit 12eff27

Browse files
committed
fix: format
1 parent 6a9536e commit 12eff27

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/runtime.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,10 @@ static int rt_curl_debug_callback(CURL* handle, curl_infotype type, char* data,
165165
runtime::runtime(std::string const& endpoint) : runtime(endpoint, "AWS_Lambda_Cpp/" + std::string(get_version())) {}
166166

167167
runtime::runtime(std::string const& endpoint, std::string const& user_agent)
168-
: m_user_agent_header("User-Agent: " + user_agent),
169-
m_endpoints{
170-
{endpoint + "/2018-06-01/runtime/init/error",
171-
endpoint + "/2018-06-01/runtime/invocation/next",
172-
endpoint + "/2018-06-01/runtime/invocation/"}}
168+
: m_user_agent_header("User-Agent: " + user_agent), m_endpoints{
169+
{endpoint + "/2018-06-01/runtime/init/error",
170+
endpoint + "/2018-06-01/runtime/invocation/next",
171+
endpoint + "/2018-06-01/runtime/invocation/"}}
173172
{
174173
if (!lambda_runtime::m_curl_handle) {
175174
logging::log_error(LOG_TAG, "Failed to acquire curl easy handle for next.");

tests/unit/unit_tests.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ TEST(VersionTest, version_format)
264264
std::string v = get_version();
265265
int dots = 0;
266266
for (char c : v) {
267-
if (c == '.') dots++;
267+
if (c == '.')
268+
dots++;
268269
}
269270
EXPECT_EQ(2, dots);
270271
}

0 commit comments

Comments
 (0)