typos: success, successful (#13997)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user