mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-31 07:56:28 +00:00 
			
		
		
		
	use map_or instead of map + unwrap_or
This commit is contained in:
		| @@ -36,8 +36,7 @@ impl TaskFilter { | ||||
|             Some(ref index_uid) => self | ||||
|                 .indexes | ||||
|                 .as_ref() | ||||
|                 .map(|indexes| indexes.contains(index_uid.as_str())) | ||||
|                 .unwrap_or(true), | ||||
|                 .map_or(true, |indexes| indexes.contains(index_uid.as_str())), | ||||
|             None => false, | ||||
|         } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user