Simplify a condition

Issue 522: Linear comment attachment algorithm