Skip to content

Commit 8532b18

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 04cadbd commit 8532b18

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

libraries/HTTPClient/src/HTTPClient.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ bool HTTPClient::begin(NetworkClient &client, String url) {
142142
_secure = (protocol == "https");
143143

144144
#ifdef HTTPCLIENT_NOSECURE
145-
if (_secure) return false;
145+
if (_secure) {
146+
return false;
147+
}
146148
#endif // HTTPCLIENT_NOSECURE
147149
return beginInternal(url, protocol.c_str());
148150
}

libraries/HTTPClient/src/HTTPClient.h

+9-3
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,15 @@ class HTTPClient {
190190
bool begin(String host, uint16_t port, String uri, const char *CAcert);
191191
bool begin(String host, uint16_t port, String uri, const char *CAcert, const char *cli_cert, const char *cli_key);
192192
#else
193-
bool begin(String url, const char *CAcert){ return false; };
194-
bool begin(String host, uint16_t port, String uri, const char *CAcert){ return false; };
195-
bool begin(String host, uint16_t port, String uri, const char *CAcert, const char *cli_cert, const char *cli_key){ return false; };
193+
bool begin(String url, const char *CAcert) {
194+
return false;
195+
};
196+
bool begin(String host, uint16_t port, String uri, const char *CAcert) {
197+
return false;
198+
};
199+
bool begin(String host, uint16_t port, String uri, const char *CAcert, const char *cli_cert, const char *cli_key) {
200+
return false;
201+
};
196202
#endif // HTTPCLIENT_NOSECURE
197203

198204
#endif

0 commit comments

Comments
 (0)