Skip to content

Commit 034b7b1

Browse files
committed
Update for code review comments
1 parent 2631f42 commit 034b7b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Fantomas.Tests/TestHelpers.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ let getFantomasToolStartInfo arguments : ProcessStartInfo =
130130
if not (File.Exists fantomasDll) then
131131
failwithf $"The fantomas dll at \"%s{fantomasDll}\" does not exist!"
132132

133-
let argumentArray = [ fantomasDll; yield! arguments ]
133+
let argumentArray = fantomasDll :: arguments
134134
let startInfo = ProcessStartInfo("dotnet", argumentArray)
135135
startInfo.UseShellExecute <- false
136136
startInfo.WorkingDirectory <- Path.GetTempPath()
@@ -150,7 +150,7 @@ let runFantomasTool arguments : FantomasToolResult =
150150
Error = error }
151151

152152
let checkCode (files: string list) : FantomasToolResult =
153-
let arguments = [ "--check" ] @ files
153+
let arguments = "--check" :: files
154154
runFantomasTool arguments
155155

156156
let formatCode (files: string list) : FantomasToolResult = runFantomasTool files

0 commit comments

Comments
 (0)