Skip to content

method.input_presence_vacuous

A presence check always holds

Type https://mthds.ai/errors/method.input_presence_vacuous
Family method: The method as written, the validation vocabulary included.
Domain method: the method's author acts, by changing the method
Retry no: repeating the operation fails the same way
HTTP status none (warning)
Raised as an item of a validate verdict's warnings, which never makes a method invalid

What it means

An advisory finding: a presence check tests an input that is always present, so it always holds.

What to do

Remove the check, or declare the input optional if it can in fact be absent.

Next steps

A warning carries no step of its own, since it is an item of a validate verdict, so its reader takes one of the code's steps: the first when the reader is the domain's actor, the method's author, and the second for any other reader.

Reader Kind Detail
The domain's actor change_method Remove the presence check on '{input}' in pipe '{pipe}'.
Any other reader contact_owner Ask the method's owner to remove the presence check on '{input}'.

Detail

The problem's detail is written from this template, filled with the occurrence's parameters:

Pipe '{pipe}' checks whether '{input}' is present, and it always is.

Parameters

Every parameter is present on every occurrence of the code.

Name Type Description
pipe identifier The pipe holding the check.
input identifier The input it checks.

See also