Skip to content

Commit 843de0c

Browse files
committed
chore: formatting of VersionUtils
1 parent 98a67e2 commit 843de0c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/main/java/io/reliza/versioning/VersionUtils.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ public static VersionHelper parseVersion (String version, String schema) {
149149
plusel[0] = version.replaceFirst("+" + plusel[1], "");
150150
}
151151
} else {
152-
// only one plus
153-
plusel = pluselHelper;
154-
version = plusel[0];
152+
// only one plus
153+
plusel = pluselHelper;
154+
version = plusel[0];
155155
}
156156
}
157157

@@ -160,7 +160,6 @@ public static VersionHelper parseVersion (String version, String schema) {
160160
String splitRegex = "\\.";
161161
if (version.contains("-") && (!handleBranchInVersion || dashInSchemaAfterBranch)) {
162162
dashelHelper = version.split("-");
163-
// if more than one dash raise an error
164163
if (dashelHelper.length > 2) {
165164
// if there are no dots, then only split on the last dash
166165
if (dashelHelper[dashelHelper.length - 1].contains(".")) {
@@ -307,7 +306,7 @@ public static boolean isPinMatchingSchema (String schema, String pin) {
307306
// remove -modifier and +metadata from schema as it's irrelevant
308307
schema = stripSchemaFromModMeta(schema);
309308
List<VersionElement> veList = parseSchema(schema);
310-
309+
311310
if (veList.size() != vh.getVersionComponents().size()) {
312311
matching = false;
313312
}

0 commit comments

Comments
 (0)