Skip to content

Commit fee4a48

Browse files
committed
clang-format
1 parent 4c814f4 commit fee4a48

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

devicedefender/source/DeviceDefender.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,18 @@ namespace Aws
3939
OnTaskCancelledHandler &&onCancelled,
4040
void *cancellationUserdata) noexcept
4141
: OnTaskCancelled(std::move(onCancelled)), cancellationUserdata(cancellationUserdata),
42-
m_allocator(allocator), m_status(ReportTaskStatus::Ready),
43-
m_taskConfig{nullptr},
44-
m_owningTask{nullptr},
45-
m_lastError(0),
46-
m_mqttConnection{mqttConnection},
47-
m_eventLoopGroup{eventLoopGroup}
42+
m_allocator(allocator), m_status(ReportTaskStatus::Ready), m_taskConfig{nullptr}, m_owningTask{nullptr},
43+
m_lastError(0), m_mqttConnection{mqttConnection}, m_eventLoopGroup{eventLoopGroup}
4844
{
4945
struct aws_byte_cursor thingNameCursor = Crt::ByteCursorFromString(thingName);
50-
m_lastError = aws_iotdevice_defender_config_create(&m_taskConfig, allocator, &thingNameCursor, reportFormat);
46+
m_lastError =
47+
aws_iotdevice_defender_config_create(&m_taskConfig, allocator, &thingNameCursor, reportFormat);
5148
if (AWS_OP_SUCCESS == m_lastError)
5249
{
5350
aws_iotdevice_defender_config_set_task_cancelation_fn(m_taskConfig, s_onDefenderV1TaskCancelled);
5451
aws_iotdevice_defender_config_set_callback_userdata(m_taskConfig, this);
55-
aws_iotdevice_defender_config_set_task_period_ns(m_taskConfig,
52+
aws_iotdevice_defender_config_set_task_period_ns(
53+
m_taskConfig,
5654
aws_timestamp_convert(taskPeriodSeconds, AWS_TIMESTAMP_SECS, AWS_TIMESTAMP_NANOS, NULL));
5755
}
5856
else
@@ -104,11 +102,13 @@ namespace Aws
104102

105103
int ReportTask::StartTask() noexcept
106104
{
107-
if (m_taskConfig != nullptr && !m_lastError && (this->GetStatus() == ReportTaskStatus::Ready || this->GetStatus() == ReportTaskStatus::Stopped))
105+
if (m_taskConfig != nullptr && !m_lastError &&
106+
(this->GetStatus() == ReportTaskStatus::Ready || this->GetStatus() == ReportTaskStatus::Stopped))
108107
{
109-
if (AWS_OP_SUCCESS != aws_iotdevice_defender_task_create(&m_owningTask, this->m_taskConfig,
110-
m_mqttConnection->GetUnderlyingConnection(),
111-
aws_event_loop_group_get_next_loop(m_eventLoopGroup.GetUnderlyingHandle())))
108+
if (AWS_OP_SUCCESS != aws_iotdevice_defender_task_create(
109+
&m_owningTask, this->m_taskConfig,
110+
m_mqttConnection->GetUnderlyingConnection(),
111+
aws_event_loop_group_get_next_loop(m_eventLoopGroup.GetUnderlyingHandle())))
112112
{
113113
this->m_lastError = aws_last_error();
114114
aws_raise_error(this->m_lastError);

devicedefender/tests/DeviceDefenderTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include <aws/iotdevicedefender/DeviceDefender.h>
99
#include <aws/testing/aws_test_harness.h>
1010
#include <utility>
11-
#include <iostream>
1211

1312
static int s_TestDeviceDefenderResourceSafety(Aws::Crt::Allocator *allocator, void *ctx)
1413
{

0 commit comments

Comments
 (0)