typos: success, successful (#13997)

This commit is contained in:
Дилян Палаузов
2022-12-18 15:18:24 +02:00
committed by GitHub
parent 6b1354f9ba
commit ef836a15dc
18 changed files with 29 additions and 29 deletions

View File

@@ -263,7 +263,7 @@ public class TapoDeviceConnector extends TapoDeviceHttpApi {
JsonObject jsnResult = getJsonFromResponse(responseBody);
Integer errorCode = jsonObjectToInt(jsnResult, "error_code", ERR_JSON_DECODE_FAIL);
if (errorCode != 0) {
logger.debug("({}) set deviceInfo not succesfull: {}", uid, jsnResult);
logger.debug("({}) set deviceInfo not successful: {}", uid, jsnResult);
this.device.handleConnectionState();
}
this.device.responsePasstrough(responseBody);
@@ -341,7 +341,7 @@ public class TapoDeviceConnector extends TapoDeviceHttpApi {
jsonObject = gson.fromJson(responseBody, JsonObject.class);
logger.trace("({}) received result: {}", uid, responseBody);
if (jsonObject != null) {
/* return result if set / else request was successfull */
/* return result if set / else request was successful */
if (jsonObject.has("result")) {
return jsonObject.getAsJsonObject("result");
} else {

View File

@@ -240,7 +240,7 @@ public class TapoDeviceHttpApi {
if (jsonObject != null) {
Integer errorCode = jsonObjectToInt(jsonObject, "error_code", ERR_JSON_DECODE_FAIL);
if (errorCode == 0) {
/* return result if set / else request was successfull */
/* return result if set / else request was successful */
result = jsonObjectToString(jsonObject.getAsJsonObject("result"), "token");
} else {
/* return errorcode from device */
@@ -344,7 +344,7 @@ public class TapoDeviceHttpApi {
logger.debug("({}) sendAsyncRequest response error'{}'", uid, response.getStatus());
handleError(new TapoErrorHandler(ERR_HTTP_RESPONSE, getContentAsString()));
} else {
/* request succesfull */
/* request successful */
String rBody = getContentAsString();
logger.trace("({}) receivedRespose '{}'", uid, rBody);
if (!hasErrorCode(rBody)) {