summaryrefslogtreecommitdiff
path: root/src/Propellor/Property
diff options
context:
space:
mode:
authorJoey Hess2017-09-05 16:31:31 -0400
committerJoey Hess2017-09-05 16:31:31 -0400
commit0a6ad2b17419fd877789053c87b95866cfc39c46 (patch)
treec645cb092a645b7155c8b11e6735966a433d8b23 /src/Propellor/Property
parentd9866a1ba5d0a4adca8bd026c652b762302bba45 (diff)
remove apparently unncessary newline stripping
blkidTag splits into lines and returns the first (non-empty) line, so as far as I can see, there can't possibly be a newline in what it returns.
Diffstat (limited to 'src/Propellor/Property')
-rw-r--r--src/Propellor/Property/Lvm.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Property/Lvm.hs b/src/Propellor/Property/Lvm.hs
index c5d215bc..d513c1be 100644
--- a/src/Propellor/Property/Lvm.hs
+++ b/src/Propellor/Property/Lvm.hs
@@ -142,7 +142,7 @@ lvState lv = do
then return Nothing
else do
s <- readLvSize
- fs <- maybe Nothing (Partition.parseFs . takeWhile (/= '\n')) <$> readFs
+ fs <- maybe Nothing Partition.parseFs <$> readFs
return $ do
size <- s
return $ LvState size fs