diff options
author | Vika <vika@fireburn.ru> | 2022-05-23 17:45:38 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2022-05-23 18:22:07 +0300 |
commit | 067d6c4c08120bb9b93190911bd00adf9159bba1 (patch) | |
tree | ada0b00b201b10faeae524e176c1d7c5f7cc2922 /util/src | |
parent | 32317404bf47ac9db34f954ab74a9e400dc32037 (diff) | |
download | kittybox-067d6c4c08120bb9b93190911bd00adf9159bba1.tar.zst |
templates: simplify logic
There were lots of unneccesary Option::unwrap() invocations that could be replaced with `if let` statements. This makes the code cleaner and less likely to panic in case a corrupted, incomplete or manually injected MF2-JSON document needs to be rendered.
Diffstat (limited to 'util/src')
0 files changed, 0 insertions, 0 deletions