Skip to content

Commit b6950ad

Browse files
committed
TimeService::setTimeZoneData: add braces around single statement if
1 parent d0597a9 commit b6950ad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/utility/time/TimeService.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,14 @@ unsigned long TimeService::getTime()
107107

108108
void TimeService::setTimeZoneData(long offset, unsigned long dst_until)
109109
{
110-
if(_timezone_offset != offset)
110+
if(_timezone_offset != offset) {
111111
DEBUG_VERBOSE("ArduinoIoTCloudTCP::%s tz_offset: [%d]", __FUNCTION__, offset);
112+
}
112113
_timezone_offset = offset;
113114

114-
if(_timezone_dst_until != dst_until)
115+
if(_timezone_dst_until != dst_until) {
115116
DEBUG_VERBOSE("ArduinoIoTCloudTCP::%s tz_dst_unitl: [%ul]", __FUNCTION__, dst_until);
117+
}
116118
_timezone_dst_until = dst_until;
117119

118120
_is_tz_configured = true;

0 commit comments

Comments
 (0)