Skip to content

Commit 4b41280

Browse files
author
Dmitry Tretyakov
committed
Refactor code
1 parent 2740cbd commit 4b41280

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ def getGitHubCommit = {
1919
it.standardOutput = changeOutput
2020
}
2121

22-
gitVersionName = hashOutput.toString().trim().substring(0, 7);
22+
gitVersionName = hashOutput.asText.get().trim().substring(0, 7)
2323
if (!changeOutput.toString().trim().empty) {
2424
def pattern = Pattern.compile("\\d+");
25-
def matcher = pattern.matcher(changeOutput.toString().trim())
25+
def matcher = pattern.matcher(changeOutput.asText.get().trim())
2626
if (matcher.find()) {
2727
gitVersionName += "-" + matcher.group()
2828
}

0 commit comments

Comments
 (0)