Skip to content

Commit acef949

Browse files
committed
Remove a variable that's only used in one place
1 parent 67e2e17 commit acef949

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/microsoft/sqlserver/jdbc/ConfigurableRetryLogic.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ private static void createConnectionRules(LinkedList<String> listOfRules) throws
284284
private static String getCurrentClassPath() throws SQLServerException {
285285
String location = "";
286286
String className = "";
287-
String locationSuffix = "target/classes/";
288287

289288
try {
290289
className = new Object() {}.getClass().getEnclosingClass().getName();
@@ -295,7 +294,7 @@ private static String getCurrentClassPath() throws SQLServerException {
295294
// We check if the Path we get from the CodeSource location is a directory. If so, we are running
296295
// from class files and should remove a suffix (i.e. the props file is in a different location from the
297296
// location returned)
298-
location = location.substring(0, location.length() - locationSuffix.length());
297+
location = location.substring(0, location.length() - ("target/classes/").length());
299298
}
300299

301300
return new URI(location).getPath() + DEFAULT_PROPS_FILE; // TODO: Allow custom paths

0 commit comments

Comments
 (0)