3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-01 17:16:39 +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>;
};
$self->{hash} = decode_json $contents;
$self->{hash} = decode_json $contents if length $contents;
close FILE;
}