Skip to content
Snippets Groups Projects
Verified Commit 35b84296 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- fixed 'mixed high and low-precedence booleans' warning

parent 676609b2
No related branches found
No related tags found
No related merge requests found
...@@ -32,12 +32,12 @@ sub validate_args { ## no critic (CognitiveComplexity::ProhibitExcessCognitiveCo ...@@ -32,12 +32,12 @@ sub validate_args { ## no critic (CognitiveComplexity::ProhibitExcessCognitiveCo
# no args allowed but options! # no args allowed but options!
$self->usage_error("No args allowed") if @$args; $self->usage_error("No args allowed") if @$args;
$self->usage_error("Missed mandatory parameter '--elasticsearch-host'") if ( $self->usage_error("Missed mandatory parameter '--elasticsearch-host'") if (
!exists($opt->{elasticsearch_host}) (!exists($opt->{elasticsearch_host}))
and !exists($opt->{help}) and (!exists($opt->{help}))
); );
$self->usage_error("Missed mandatory parameter '--permanent-volume'") if ( $self->usage_error("Missed mandatory parameter '--permanent-volume'") if (
!exists($opt->{permanent_volume}) (!exists($opt->{permanent_volume}))
and !exists($opt->{help}) and (!exists($opt->{help}))
); );
foreach my $vol (@{ $opt->{permanent_volume} }) { foreach my $vol (@{ $opt->{permanent_volume} }) {
$self->usage_error("Parameter '--permanent-volume' expects an existing dir, got '$vol'!") unless -d $vol; $self->usage_error("Parameter '--permanent-volume' expects an existing dir, got '$vol'!") unless -d $vol;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment