Skip to content

Commit 5ffa70d

Browse files
russcamMpdreamz
authored andcommitted
SpanQuery IsWritable when it's verbatim or not conditionless
1 parent 1174569 commit 5ffa70d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Nest/QueryDsl/Span/SpanQuery.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class SpanQuery : ISpanQuery
4242
bool IQuery.IsWritable { get; }
4343
public bool IsVerbatim { get; set; }
4444
public bool IsStrict { get; set; }
45-
public bool IsWritable { get { return this.IsVerbatim || IsConditionless(this); } }
45+
public bool IsWritable => this.IsVerbatim || !IsConditionless(this);
4646
bool IQuery.Conditionless => IsConditionless(this);
4747
public ISpanTermQuery SpanTerm { get; set; }
4848
public ISpanFirstQuery SpanFirst { get; set; }

0 commit comments

Comments
 (0)