feat: remove the empty_result_set option and helper functions

This commit is contained in:
neon_arch 2023-07-17 13:03:20 +03:00
parent c5fca32553
commit 7e3b59e8c0
2 changed files with 0 additions and 18 deletions

View file

@ -161,12 +161,6 @@ async fn results(
}
};
results_json.add_style(config.style.clone());
// check whether the results grabbed from the upstream engines are empty or
// not if they are empty then set the empty_result_set option to true in
// the result json.
if results_json.is_empty_result_set() {
results_json.set_empty_result_set();
}
redis_cache.cache_results(serde_json::to_string(&results_json)?, &url)?;
Ok(results_json)
}