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 {