mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-05-20 18:59:33 -04:00
Simplified if() in Summary by removing superfluous condition
This commit is contained in:
parent
f8a93fc70b
commit
d6f0ac060f
@ -1097,12 +1097,12 @@ bool Summary::getDefaultSummary(const Xml *xml, const Words *words, const Sectio
|
||||
}
|
||||
|
||||
// is it a front tag?
|
||||
if ( tid && ! (tids[i] & BACKBIT) ) {
|
||||
if ( ! (tids[i] & BACKBIT) ) {
|
||||
if ( tid == TAG_A ) {
|
||||
inLink = true;
|
||||
}
|
||||
}
|
||||
else if ( tid ) {
|
||||
else {
|
||||
if ( tid == TAG_A ) {
|
||||
inLink = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user