diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2022-11-16 23:14:10 +0100 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2022-11-16 23:14:10 +0100 |
commit | d0ffe11bd365b68d4da252b39d06d99f75d8cacb (patch) | |
tree | 17b852052b6515864d7963b49b2ac3ee2c3df134 /lib/JWebmail/Model/ReadMails/MockJSON.pm | |
parent | a52a7d7c27440a7c2716af033a6113abcaa2bd46 (diff) |
minor cleanup and fixes
Diffstat (limited to 'lib/JWebmail/Model/ReadMails/MockJSON.pm')
-rw-r--r-- | lib/JWebmail/Model/ReadMails/MockJSON.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/JWebmail/Model/ReadMails/MockJSON.pm b/lib/JWebmail/Model/ReadMails/MockJSON.pm index 1a16ef6..b90a630 100644 --- a/lib/JWebmail/Model/ReadMails/MockJSON.pm +++ b/lib/JWebmail/Model/ReadMails/MockJSON.pm @@ -3,10 +3,10 @@ package JWebmail::Model::ReadMails::MockJSON; use v5.24; use warnings; use utf8; +use autodie; use List::Util 'sum'; - -use Mojo::JSON 'decode_json'; +use JSON::PP 'decode_json'; use Digest::HMAC_MD5 'hmac_md5_hex'; use Role::Tiny::With; @@ -28,7 +28,7 @@ sub _read_json_file { use constant PREFIX => 't/private/'; - open(my $body_file, '<', PREFIX . $file_name); + open my $body_file, '<', PREFIX . $file_name; local $/; my $body = <$body_file>; close $body_file; |