From d713f31af00c302b1674f4541c59d202e1ef9bac Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Thu, 11 Nov 2021 02:43:23 +0000 Subject: [PATCH] Restyled by clang-format --- src/controller/java/CHIPDeviceController-JNI.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/controller/java/CHIPDeviceController-JNI.cpp b/src/controller/java/CHIPDeviceController-JNI.cpp index 6a7491b4f078c7..339e2561ea6857 100644 --- a/src/controller/java/CHIPDeviceController-JNI.cpp +++ b/src/controller/java/CHIPDeviceController-JNI.cpp @@ -280,13 +280,14 @@ JNI_METHOD(void, stopDevicePairing)(JNIEnv * env, jobject self, jlong handle, jl JNI_METHOD(jlong, getDeviceBeingCommissionedPointer)(JNIEnv * env, jobject self, jlong handle, jlong nodeId) { chip::DeviceLayer::StackLock lock; - CHIP_ERROR err = CHIP_NO_ERROR; + CHIP_ERROR err = CHIP_NO_ERROR; AndroidDeviceControllerWrapper * wrapper = AndroidDeviceControllerWrapper::FromJNIHandle(handle); CommissioneeDeviceProxy * commissioneeDevice = nullptr; err = wrapper->Controller()->GetDeviceBeingCommissioned(static_cast(nodeId), &commissioneeDevice); - if (commissioneeDevice == nullptr) { + if (commissioneeDevice == nullptr) + { ChipLogError(Controller, "Commissionee device was nullptr"); err = CHIP_ERROR_INCORRECT_STATE; }