From e66e3b8483d5a08a119ec575fb13b6a9c901640a Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Sat, 12 Mar 2022 12:24:54 +0100 Subject: [PATCH] build: remove devNull variable This is an imperceptible optimization by reducing the scope of the null stream object --- build.gradle.kts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index cf113f2..1b1fbfe 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -20,11 +20,10 @@ dependencies { fun versionBanner(): String { val os = ByteArrayOutputStream() - val devNull = OutputStream.nullOutputStream() project.exec { commandLine = "git describe --tags --always --dirty --abbrev".split(" ") standardOutput = os - errorOutput = devNull + errorOutput = OutputStream.nullOutputStream() } return String(os.toByteArray()).trim() }