Mercurial > hg > orthanc
diff OrthancServer/Sources/ServerContext.cpp @ 4994:2f30aa99c2db
cppcheck
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 03 May 2022 15:30:01 +0200 |
parents | 8fba26292a9f |
children | 877bc3b96476 |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.cpp Mon May 02 14:31:41 2022 +0200 +++ b/OrthancServer/Sources/ServerContext.cpp Tue May 03 15:30:01 2022 +0200 @@ -638,8 +638,9 @@ } } - if (!isReconstruct) // skip logs in case of reconstruction + if (!isReconstruct) { + // skip logs in case of reconstruction switch (result.GetStatus()) { case StoreStatus_Success: @@ -658,10 +659,8 @@ // This should never happen break; } - } - if (!isReconstruct) // skip all signals if this is a reconstruction - { + // skip all signals if this is a reconstruction if (result.GetStatus() == StoreStatus_Success || result.GetStatus() == StoreStatus_AlreadyStored) {