Skip to content

Commit 23df67c

Browse files
committed
Inline single use local variable
1 parent 18d5460 commit 23df67c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/apache/commons/crypto/NativeCodeLoader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ private static File findNativeLibrary() {
186186
}
187187

188188
if (!hasNativeLib) {
189-
final String errorMessage = String.format("No native library is found for os.name=%s and os.arch=%s", OsInfo.getOSName(), OsInfo.getArchName());
190-
throw new IllegalStateException(errorMessage);
189+
throw new IllegalStateException(
190+
String.format("No native library is found for os.name=%s and os.arch=%s", OsInfo.getOSName(), OsInfo.getArchName()));
191191
}
192192

193193
// Temporary folder for the native lib. Use the value of

0 commit comments

Comments
 (0)