From 0e39d53352b982022747e451676bc6a66e3d9acc Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 20 Oct 2015 23:37:21 -0400 Subject: refactor --- src/Propellor/Spin.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Propellor/Spin.hs') diff --git a/src/Propellor/Spin.hs b/src/Propellor/Spin.hs index 3cdd8c98..0c457705 100644 --- a/src/Propellor/Spin.hs +++ b/src/Propellor/Spin.hs @@ -100,9 +100,9 @@ spin' mprivdata relay target hst = do Nothing | relaying -> do let f = privDataRelay hn - d <- readFileStrictAnyEncoding f + d <- readPrivDataFile f nukeFile f - return (readPrivData d) + return d | otherwise -> filterPrivData hst <$> decryptPrivData Just pd -> pure pd -- cgit v1.3-2-g0d8e