mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
DualIndexHashObject: ensure file has contents before attempting to parse
This commit is contained in:
parent
3011f16f6f
commit
8185c7399f
@ -79,7 +79,7 @@ sub load {
|
||||
<FILE>;
|
||||
};
|
||||
|
||||
$self->{hash} = decode_json $contents;
|
||||
$self->{hash} = decode_json $contents if length $contents;
|
||||
close FILE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user