Return keyword cc4m_logo_inline

IDSTAT-15
TitleMinimize the use of return.
PriorityRecommended
Severity level9
DescriptionMinimize the use of the return keyword.
RationaleUsing return decreases readability because the end of the function is not always reached. By avoiding the return keyword, the flow of the code remains clear.

Avoid:

if isempty(x)
    return
end

<rest of the code>

Instead use:

if isempty(x)
    % No further actions.
else
    <rest of the code>
end