txn: remove unnecessary length check in SnapshotStore::batch_get
@@ -324,11 +324,6 @@ impl<S: Snapshot> Store for SnapshotStore<S> {
keys: &[Key],
statistics: &mut Vec<Statistics>,
) -> Result<Vec<Result<Option<Value>>>> {
- if keys.len() == 1 {
- statistics.push(Statistics::default());
- return Ok(vec![self.get(&keys[0], statistics.last_mut().unwrap())]);
- }
-
let mut point_getter = PointGetterBuilder::new(self.snapshot.clone(), self.start_ts)
.fill_cache(self.fill_cache)
.isolation_level(self.isolation_level)
