diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-03-10 13:12:24 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-03-10 13:35:31 -0400 |
commit | 8cb9381befed4174624edfc80e09185c9340b4f6 (patch) | |
tree | e5d2041ff38502b1f8a5ef9caa6515cccfcea555 /Backend | |
parent | e230fd58b5f5d5d16f87e1bd5c0f2e553f2ae5a2 (diff) |
AssociatedFile newtype
To prevent any further mistakes like 1a497cefb47557f0b4788c606f9071be422b2511
This commit was sponsored by Francois Marier on Patreon.
Diffstat (limited to 'Backend')
-rw-r--r-- | Backend/Hash.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Backend/Hash.hs b/Backend/Hash.hs index 9b0e9190a..a5abc8447 100644 --- a/Backend/Hash.hs +++ b/Backend/Hash.hs @@ -148,8 +148,8 @@ trivialMigrate oldkey newbackend afile } {- Fast migration from hash to hashE backend. -} | migratable && hasExt oldvariety = case afile of - Nothing -> Nothing - Just file -> Just $ oldkey + AssociatedFile Nothing -> Nothing + AssociatedFile (Just file) -> Just $ oldkey { keyName = keyHash oldkey ++ selectExtension file , keyVariety = newvariety } |