Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 55ce2eb

Browse files
Get index (#11694)
1 parent 9e89a96 commit 55ce2eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage-bigtable/src/bigtable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ impl BigTable {
446446
T: serde::de::DeserializeOwned,
447447
{
448448
let row_data = self.get_row_data(table, Some(key.clone()), None, 1).await?;
449-
let (row_key, data) = &row_data[0];
449+
let (row_key, data) = &row_data.get(0).ok_or_else(|| Error::RowNotFound)?;
450450

451451
deserialize_cell_data(data, table, row_key.to_string())
452452
}

0 commit comments

Comments
 (0)