mirror of
https://github.com/JADE-Jerry/jcalendar.git
synced 2026-05-01 04:49:37 +08:00
@@ -35,8 +35,7 @@ bool getHolidays(Holiday& result, int year, int month) {
|
||||
}
|
||||
http.end();
|
||||
|
||||
int status = doc["code"];
|
||||
if (doc["code"] != 0) {
|
||||
if (int status = doc["code"]) {
|
||||
Serial.println("Get holidays error.");
|
||||
return false;
|
||||
}
|
||||
@@ -59,4 +58,4 @@ bool getHolidays(Holiday& result, int year, int month) {
|
||||
Serial.println();
|
||||
result.length = i;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user