Skip to content

Commit 8505277

Browse files
committed
Compress error message in a single line for better readability of the control flow
1 parent 2eca3fa commit 8505277

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,7 @@ int ArduinoIoTCloudTCP::begin(String brokerAddress, uint16_t brokerPort) {
8181
_brokerPort = brokerPort;
8282

8383
#ifdef BOARD_HAS_ECCX08
84-
if (!ECCX08.begin()) {
85-
Debug.print(DBG_ERROR, "Cryptography processor failure. Make sure you have a compatible board.");
86-
return 0;
87-
}
84+
if (!ECCX08.begin()) { Debug.print(DBG_ERROR, "Cryptography processor failure. Make sure you have a compatible board."); return 0; }
8885

8986
_device_id = CryptoUtil::readDeviceId(ECCX08, ECCX08Slot::DeviceId);
9087
if(_device_id.length() == 0) { Debug.print(DBG_ERROR, "Cryptography processor read failure."); return 0; }

0 commit comments

Comments
 (0)