From 0a6ad2b17419fd877789053c87b95866cfc39c46 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 5 Sep 2017 16:31:31 -0400 Subject: 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. --- src/Propellor/Property/Lvm.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3