move unspecifiedAttr check to checkAttr
authorJoey Hess <joeyh@joeyh.name>
Mon, 12 Jun 2023 18:37:42 +0000 (14:37 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 12 Jun 2023 18:37:42 +0000 (14:37 -0400)
commitae98fb1b3103b51405fe84ae4f1be13243a00e0e
tree18975683bbc7c4b6186d03426f4ac086e5b3468e
parent38153ad340be885ea8bb7dd0b7df855123374a76
move unspecifiedAttr check to checkAttr

It just so happens that everywhere that checks attrs other than
annex.largefiles parses the value further, and failed to parse
unspecifiedAttr in a way that behaved the same as if nothing was set. So
this is not a bug fix or behavior change. What it does so is prevent
future uses of checkAttr from needing to remember to handle checking for
this edge case.

Sponsored-by: Dartmouth College's DANDI project
Annex/CheckAttr.hs
Annex/FileMatcher.hs