Remove the conditional for setting query. (#23604)

1 file changed