From d9be729badd018e2a633b32a769fde431c7d7b17 Mon Sep 17 00:00:00 2001 From: Thomas Lea Date: Wed, 28 Aug 2024 16:22:49 -0500 Subject: [PATCH] restyled --- .../CodegenDataModelProvider_Read.cpp | 3 ++- .../CodegenDataModelProvider_Write.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/codegen-data-model-provider/CodegenDataModelProvider_Read.cpp b/src/app/codegen-data-model-provider/CodegenDataModelProvider_Read.cpp index 511fb7e768bb13..0c165f87ce05f2 100644 --- a/src/app/codegen-data-model-provider/CodegenDataModelProvider_Read.cpp +++ b/src/app/codegen-data-model-provider/CodegenDataModelProvider_Read.cpp @@ -290,7 +290,8 @@ DataModel::ActionReturnStatus CodegenDataModelProvider::ReadAttribute(const Data } // access denied and access restricted have specific codes for IM - return err == CHIP_ERROR_ACCESS_DENIED ? CHIP_IM_GLOBAL_STATUS(UnsupportedAccess) : CHIP_IM_GLOBAL_STATUS(AccessRestricted); + return err == CHIP_ERROR_ACCESS_DENIED ? CHIP_IM_GLOBAL_STATUS(UnsupportedAccess) + : CHIP_IM_GLOBAL_STATUS(AccessRestricted); } } diff --git a/src/app/codegen-data-model-provider/CodegenDataModelProvider_Write.cpp b/src/app/codegen-data-model-provider/CodegenDataModelProvider_Write.cpp index 1a4f0f80374ca5..d2a2ebb293d622 100644 --- a/src/app/codegen-data-model-provider/CodegenDataModelProvider_Write.cpp +++ b/src/app/codegen-data-model-provider/CodegenDataModelProvider_Write.cpp @@ -290,7 +290,8 @@ DataModel::ActionReturnStatus CodegenDataModelProvider::WriteAttribute(const Dat ReturnErrorCodeIf(err != CHIP_ERROR_ACCESS_DENIED && err != CHIP_ERROR_ACCESS_RESTRICTED_BY_ARL, err); // TODO: when wildcard/group writes are supported, handle them to discard rather than fail with status - return err == CHIP_ERROR_ACCESS_DENIED ? CHIP_IM_GLOBAL_STATUS(UnsupportedAccess) : CHIP_IM_GLOBAL_STATUS(AccessRestricted); + return err == CHIP_ERROR_ACCESS_DENIED ? CHIP_IM_GLOBAL_STATUS(UnsupportedAccess) + : CHIP_IM_GLOBAL_STATUS(AccessRestricted); } }