Skip to content

Commit 48c34bd

Browse files
Potential fix for pull request finding 'CodeQL / Inefficient empty string test'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 5446a82 commit 48c34bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • jNutList/src/main/java/org/networkupstools/jnutlist

jNutList/src/main/java/org/networkupstools/jnutlist/AppList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static void main( String[] args )
5555

5656
SSLConfig sslConfig = null;
5757

58-
if (!jks_path.equals("") && !jks_pass.equals("")) {
58+
if (!jks_path.isEmpty() && !jks_pass.isEmpty()) {
5959
sslConfig = new SSLConfig_JKS(
6060
forceSSL > 0,
6161
certVerify > 0,

0 commit comments

Comments
 (0)