about summary refs log tree commit diff
path: root/ops/nixos/depot.nix
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2021-11-23T18·35+0100
committersterni <sternenseemann@systemli.org>2021-11-25T11·15+0100
commit0e9c770972afe787565c7ba5475ff8398f807f20 (patch)
tree4e8fadfd563ee664e783e837c83700cc40350352 /ops/nixos/depot.nix
parent87a0aaa77dd94a5a83e4cc0d00e06528d5ce8edc (diff)
refactor(sterni/nix/utf8): let wellFormedByte check first byte r/3092
Previously we would check the first byte only when trying to figure out
the predicate for the second byte. If the first byte was invalid, we'd
then throw with a helpful error message. However this made
wellFormedByte a very weird function.

At the expense of doing the same check twice, we now check the first
byte, when it is first passed, and always return a boolean.

Change-Id: I32ab6051c844711849e5b4a115e2511b53682baa
Diffstat (limited to 'ops/nixos/depot.nix')
0 files changed, 0 insertions, 0 deletions