mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-25 19:44:26 +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>;
|
<FILE>;
|
||||||
};
|
};
|
||||||
|
|
||||||
$self->{hash} = decode_json $contents;
|
$self->{hash} = decode_json $contents if length $contents;
|
||||||
close FILE;
|
close FILE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user