Skip to content

ncg: remove dead code #2

@dmdunla

Description

@dmdunla

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    dead codeThis code cannot be reachedenhancementNew feature or requestto doWill work on this in the future

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions