Use check for defined value after eval(), style fixes, fix typo in sub name and var name
This commit is contained in:
@@ -34,7 +34,7 @@ sub Kitty {
|
||||
decode_json ($r->{content})
|
||||
};
|
||||
|
||||
if ($EVAL_ERROR) {
|
||||
unless (defined $jcat) {
|
||||
carp "[ERROR] Unable to decode JSON: $EVAL_ERROR";
|
||||
} else {
|
||||
if ($jcat->[0]->{url}) {
|
||||
|
||||
Reference in New Issue
Block a user