Skip to content

Commit 050956e

Browse files
author
Serhii Khoma
committed
purs-tidy format-in-place src/**/*.purs test/**/*.purs
1 parent 75ee363 commit 050956e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/GitHub/Actions/ToolCache.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ extractXar =
186186
Nothing, Nothing -> runEffectFn1 extractXar1Impl file
187187
Just d, Nothing -> runEffectFn2 extractXar2Impl file d
188188
Nothing, Just f -> runEffectFn2 extractXar2Impl2 file f
189-
Just d, Just f -> runEffectFn3 extractXar3Impl file d f
189+
Just d, Just f -> runEffectFn3 extractXar3Impl file d f
190190

191191
foreign import extractZip1Impl :: EffectFn1 FilePath (Promise FilePath)
192192

@@ -230,7 +230,7 @@ type CacheDirArgs =
230230
}
231231

232232
-- | Caches a directory and installs it into the tool cacheDir
233-
cacheDir' :: { sourceDir :: String, tool :: String , version :: String } -> ExceptT Error Aff FilePath
233+
cacheDir' :: { sourceDir :: String, tool :: String, version :: String } -> ExceptT Error Aff FilePath
234234
cacheDir' { sourceDir, tool, version } = cacheDir { sourceDir, tool, version, arch: Nothing }
235235

236236
-- | Caches a directory and installs it into the tool cacheDir

test/Test/Main.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ main = do
5858
_ <- Cache.restoreCache' { paths: [], primaryKey: "restorecache" }
5959
_ <- Cache.restoreCache { paths: [], primaryKey: "restorecache", restoreKeys: Nothing, options: Nothing }
6060
_ <- Cache.restoreCache { paths: [], primaryKey: "restorecache", restoreKeys: Just [ "a" ], options: Nothing }
61-
Cache.restoreCache { paths: [], primaryKey: "restorecaceh", restoreKeys: Just [ "a" ], options: Just (Cache.defaultDownloadOptions { useAzureSdk = Just true, downloadConcurrency = Just true, timeoutInMs = Just 10.0 })}
61+
Cache.restoreCache { paths: [], primaryKey: "restorecaceh", restoreKeys: Just [ "a" ], options: Just (Cache.defaultDownloadOptions { useAzureSdk = Just true, downloadConcurrency = Just true, timeoutInMs = Just 10.0 }) }
6262

6363
-- Tests for GitHub.Actions.Exec
6464
let
@@ -68,7 +68,7 @@ main = do
6868
runAff_ execCb $ runExceptT do
6969
_ <- Exec.exec' "pwd"
7070
_ <- Exec.exec { command: "pwd", args: Just [ "-L" ], options: Nothing }
71-
Exec.exec { command: "pwd", args: Just [ "-L" ], options: Just (Exec.defaultExecOptions { delay = Just 10.0 })}
71+
Exec.exec { command: "pwd", args: Just [ "-L" ], options: Just (Exec.defaultExecOptions { delay = Just 10.0 }) }
7272

7373
-- Tests for GitHub.Actions.IO
7474
let
@@ -78,7 +78,7 @@ main = do
7878
runAff_ ioCb $ runExceptT do
7979
_ <- Exec.exec' "touch test.txt"
8080
_ <- IO.cp' { source: "test.txt", dest: "test1.txt" }
81-
_ <- IO.cp { source: "test1.txt", dest: "test2.txt", options: Just (IO.defaultCopyOptions { force = Just true })}
81+
_ <- IO.cp { source: "test1.txt", dest: "test2.txt", options: Just (IO.defaultCopyOptions { force = Just true }) }
8282
_ <- IO.mv' { source: "test2.txt", dest: "test3.txt" }
8383
_ <- IO.mv { source: "test3.txt", dest: "test4.txt", options: Just (IO.defaultMoveOptions { force = Just true }) }
8484
_ <- IO.rmRF { inputPath: "test4.txt" }

0 commit comments

Comments
 (0)