mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-18 18:17:50 -05:00
Just use eval instead of Try::Tiny in tests
This commit is contained in:
parent
03b09f7ce0
commit
ff8aa20d0e
1 changed files with 1 additions and 5 deletions
|
|
@ -17,8 +17,6 @@ use File::Basename;
|
|||
|
||||
use JSON;
|
||||
|
||||
use Try::Tiny;
|
||||
|
||||
use IO::File;
|
||||
use Data::Dumper;
|
||||
|
||||
|
|
@ -621,9 +619,7 @@ sub testCmd {
|
|||
chomp $output;
|
||||
$object->output($output);
|
||||
|
||||
try {
|
||||
$object->{'mp_test_result'} = decode_json($output);
|
||||
};
|
||||
eval { $object->{'mp_test_result'} = decode_json($output) };
|
||||
|
||||
alarm(0);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue