From e4221175ff4a609cabb843ae0c1dd9f482d67481 Mon Sep 17 00:00:00 2001 From: Bastiaan Veelo Date: Fri, 27 May 2022 19:20:57 +0200 Subject: [PATCH] Refactor courtesy WebFreak001. Co-authored-by: Jan Jurzitza --- tests/test.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.d b/tests/test.d index e4d70d4..3f9f725 100755 --- a/tests/test.d +++ b/tests/test.d @@ -24,7 +24,7 @@ int main() const argsFile = source.stripExtension ~ ".args"; const dfmtCommand = [dfmt, "--brace_style=" ~ braceStyle] ~ - (argsFile.exists ? readText(argsFile).splitter!isWhite.filter!(a => a.length).array : []) ~ + (argsFile.exists ? readText(argsFile).split : []) ~ [source]; writeln(dfmtCommand.join(" ")); if (const result = spawnProcess(dfmtCommand, stdin, File(outFileName, "w")).wait)