poblano_toolbox icon indicating copy to clipboard operation
poblano_toolbox copied to clipboard

ncg: remove dead code

Open dmdunla opened this issue 6 years ago • 0 comments

The following code cannot be reached and should be removed:

            switch (params.Results.Update)
...
                otherwise
                    error('Error: options.Update is not valid. Choices are {FR, PR, HS}');

This cannot be reached because there is a check of the inputs which will prevent the otherwise statement from being executed:

params.addParamValue('Update','PR',@(x) ismember(x,{'FR','PR','HS','SD'}));

NOTE: found using code coverage

dmdunla avatar Apr 28 '19 20:04 dmdunla