Skip to content

Commit 4ac495e

Browse files
committed
contains -> startsWith
1 parent 1163a57 commit 4ac495e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/dev/lavalink/youtube/cipher/SignatureCipherManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public URI resolveFormatUrl(@NotNull HttpInterface httpInterface, @NotNull Strin
138138
logMessage = "Transformed n parameter is null, n function possibly faulty";
139139
} else if (nParameter.equals(transformed)) {
140140
logMessage = "Transformed n parameter is the same as input, n function possibly short-circuited";
141-
} else if (transformed.contains("enhanced_except_") || transformed.endsWith("_w8_" + nParameter)) {
141+
} else if (transformed.startsWith("enhanced_except_") || transformed.endsWith("_w8_" + nParameter)) {
142142
logMessage = "N function did not complete due to exception";
143143
}
144144

0 commit comments

Comments
 (0)