Skip to content

Commit e582133

Browse files
committed
Drop extraneous length check in newMarkupSanitizer(...)
Signed-off-by: Alexander Scheel <[email protected]>
1 parent 5353d15 commit e582133

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/setting/markup.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ func newMarkupSanitizer(name string, sec *ini.Section) {
7272
regexps := sec.Key("REGEXP").ValueWithShadows()
7373

7474
if len(elements) != len(allowAttrs) ||
75-
len(elements) != len(regexps) ||
76-
len(allowAttrs) != len(regexps) {
75+
len(elements) != len(regexps) {
7776
log.Error("All three keys in markup.%s (ELEMENT, ALLOW_ATTR, REGEXP) must be defined the same number of times! Got %d, %d, and %d respectively.", name, len(elements), len(allowAttrs), len(regexps))
7877
return
7978
}

0 commit comments

Comments
 (0)