Remove useless null checks
This fixes warnings from LGTM: This check is useless, inputStrings cannot be null here, since it is guarded by ... != .... Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
637ce7cdad
commit
56523da8a3
2 changed files with 2 additions and 8 deletions
|
@ -134,10 +134,7 @@ public class ProtwordsFile extends DictionaryFile<ProtwordsItem> {
|
|||
}
|
||||
|
||||
final String inputStrings = line;
|
||||
String input = null;
|
||||
if (inputStrings != null) {
|
||||
input = unescape(inputStrings);
|
||||
}
|
||||
String input = unescape(inputStrings);
|
||||
|
||||
if (input.length() > 0) {
|
||||
id++;
|
||||
|
|
|
@ -134,10 +134,7 @@ public class StopwordsFile extends DictionaryFile<StopwordsItem> {
|
|||
}
|
||||
|
||||
final String inputStrings = line;
|
||||
String input = null;
|
||||
if (inputStrings != null) {
|
||||
input = unescape(inputStrings);
|
||||
}
|
||||
String input = unescape(inputStrings);
|
||||
|
||||
if (input.length() > 0) {
|
||||
id++;
|
||||
|
|
Loading…
Add table
Reference in a new issue