From 8297ad1f99682ea8355180cb6c21a73a4ea8810c Mon Sep 17 00:00:00 2001 From: Nagaprasadvr Date: Thu, 26 Dec 2024 21:29:16 +0530 Subject: [PATCH] cleanup --- das_api/src/api/api_impl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/das_api/src/api/api_impl.rs b/das_api/src/api/api_impl.rs index 36d0bd6c..a4ca2224 100644 --- a/das_api/src/api/api_impl.rs +++ b/das_api/src/api/api_impl.rs @@ -117,7 +117,7 @@ impl DasApi { page_opt.limit = limit.map(|x| x as u64).unwrap_or(1000); if is_cursor_enabled { - if let Some(_) = &sorting { + if sorting.is_some() { page_opt.cursor = Some(self.get_cursor(cursor)?); } } else {