Skip to content

Commit 81e98b7

Browse files
fixup: windows, remove toBool
1 parent a1f5d32 commit 81e98b7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Streamly/Coreutils/FileTest/Windows.hsc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ import System.Win32.Types
7878
, LPDWORD
7979
, failIfFalse_
8080
, iNVALID_HANDLE_VALUE
81-
, toBool
8281
, withFilePath
8382
)
8483

@@ -375,7 +374,7 @@ isPathOwnedByCurrentUser :: FilePath -> IO Bool
375374
isPathOwnedByCurrentUser path =
376375
withFileOwnerSID path $ \fileSid ->
377376
withEffectiveUserSID $ \userSid ->
378-
toBool <$> c_EqualSid fileSid userSid
377+
c_EqualSid fileSid userSid
379378

380379
isOwnedByCurrentUser :: FileTest
381380
isOwnedByCurrentUser = withPathM isPathOwnedByCurrentUser
@@ -388,7 +387,7 @@ isPathOwnedByCurrentGroup :: FilePath -> IO Bool
388387
isPathOwnedByCurrentGroup path =
389388
withFilePrimaryGroupSID path $ \fileSid ->
390389
withEffectiveGroupSID $ \userSid ->
391-
(/= 0) <$> c_EqualSid fileSid userSid
390+
c_EqualSid fileSid userSid
392391
393392
isOwnedByCurrentGroup :: FileTest
394393
isOwnedByCurrentGroup = withPathM isPathOwnedByCurrentGroup

0 commit comments

Comments
 (0)