fixed typo (#30218)
This commit is contained in:
parent
1a36631dbb
commit
174c725ef8
2 changed files with 2 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ public class StatefulMapConcat {
|
||||||
|
|
||||||
return (element) -> {
|
return (element) -> {
|
||||||
if (element.startsWith("deny:")) {
|
if (element.startsWith("deny:")) {
|
||||||
denyList.add(element.substring(10));
|
denyList.add(element.substring("deny:".length()));
|
||||||
return Collections
|
return Collections
|
||||||
.emptyList(); // no element downstream when adding a deny listed keyword
|
.emptyList(); // no element downstream when adding a deny listed keyword
|
||||||
} else if (denyList.contains(element)) {
|
} else if (denyList.contains(element)) {
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ class StatefulMapConcat {
|
||||||
|
|
||||||
{ element =>
|
{ element =>
|
||||||
if (element.startsWith("deny:")) {
|
if (element.startsWith("deny:")) {
|
||||||
denyList += element.drop(10)
|
denyList += element.drop("deny:".size)
|
||||||
Nil // no element downstream when adding a deny listed keyword
|
Nil // no element downstream when adding a deny listed keyword
|
||||||
} else if (denyList(element)) {
|
} else if (denyList(element)) {
|
||||||
Nil // no element downstream if element is deny listed
|
Nil // no element downstream if element is deny listed
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue