Skip to content

Commit

Permalink
Issue #1316: use postfix 'unless', for consistencies sake
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Oct 14, 2021
1 parent 28d48b2 commit a10dc34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sub Run {
my $Self = shift;

# Skip the plugin, if the support data collection isn't running in a web request.
return $Self->GetResults() if !$ENV{GATEWAY_INTERFACE};
return $Self->GetResults() unless $ENV{GATEWAY_INTERFACE};

my %Environment = %ENV;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ sub Run {
my $Self = shift;

# Skip the plugin, if the support data collection isn't running in a web request.
return $Self->GetResults() if !$ENV{GATEWAY_INTERFACE};
return $Self->GetResults() unless $ENV{GATEWAY_INTERFACE};

my $ParamObject = $Kernel::OM->Get('Kernel::System::Web::Request');
my $ServerSoftware = $ParamObject->ServerSoftware();
Expand Down

0 comments on commit a10dc34

Please sign in to comment.