build: remove devNull variable
This is an imperceptible optimization by reducing the scope of the null stream object
This commit is contained in:
parent
8c6d65f147
commit
e66e3b8483
1 changed files with 1 additions and 2 deletions
|
@ -20,11 +20,10 @@ dependencies {
|
||||||
|
|
||||||
fun versionBanner(): String {
|
fun versionBanner(): String {
|
||||||
val os = ByteArrayOutputStream()
|
val os = ByteArrayOutputStream()
|
||||||
val devNull = OutputStream.nullOutputStream()
|
|
||||||
project.exec {
|
project.exec {
|
||||||
commandLine = "git describe --tags --always --dirty --abbrev".split(" ")
|
commandLine = "git describe --tags --always --dirty --abbrev".split(" ")
|
||||||
standardOutput = os
|
standardOutput = os
|
||||||
errorOutput = devNull
|
errorOutput = OutputStream.nullOutputStream()
|
||||||
}
|
}
|
||||||
return String(os.toByteArray()).trim()
|
return String(os.toByteArray()).trim()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue