Skip to content
Permalink
Browse files
Use isEmtpy instead of checking length
  • Loading branch information
FSchumacher committed Feb 2, 2022
1 parent 6196e40 commit 97c969865abdb0c7e01731b856a234441367b499
Showing 1 changed file with 1 addition and 1 deletion.
@@ -67,7 +67,7 @@ public void addFormActionsAndCharSet(String html, Map<String, String> formEncodi
// Just use the first one of the possible many charsets
if(charSets.length > 0) {
formCharSet = charSets[0].trim();
if(formCharSet.length() == 0) {
if (formCharSet.isEmpty()) {
formCharSet = null;
}
}

0 comments on commit 97c9698

Please sign in to comment.