3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-05-07 23:27:28 +02:00

DualIndexHashObject: ensure file has contents before attempting to parse

This commit is contained in:
Pragmatic Software 2019-12-21 18:59:17 -08:00
parent 3011f16f6f
commit 8185c7399f

View File

@ -79,7 +79,7 @@ sub load {
<FILE>; <FILE>;
}; };
$self->{hash} = decode_json $contents; $self->{hash} = decode_json $contents if length $contents;
close FILE; close FILE;
} }