There is a repeated section of code in the source code. Although it does not affect the function, it is not elegant. #26
-
In lines 13 to 23 of source code bool AddStoragePoolMsgEx::processIncoming(ResponseContext& ctx)
{
StoragePoolStore* storagePoolStore = Program::getApp()->getStoragePoolStore();
if (Program::getApp()->isShuttingDown())
{
ctx.sendResponse(GenericResponseMsg(GenericRespMsgCode_TRYAGAIN, "Mgmtd shutting down."));
return true;
}
if (Program::getApp()->isShuttingDown())
{
ctx.sendResponse(GenericResponseMsg(GenericRespMsgCode_TRYAGAIN, "Mgmtd shutting down."));
return true;
}
........
} |
Beta Was this translation helpful? Give feedback.
Answered by
iamjoemccormick
Dec 17, 2024
Replies: 1 comment
-
Hi @MingWangSong, I can't promise it will be merged in time, but I submitted a pull request dropping the duplicate block as you're correct it is unneeded. Thanks for the report! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
iamjoemccormick
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @MingWangSong,
I can't promise it will be merged in time, but I submitted a pull request dropping the duplicate block as you're correct it is unneeded. Thanks for the report!