(cherry picked from commit 55ce2ebd53)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
This commit is contained in:
mergify[bot]
2020-08-18 19:12:49 +00:00
committed by GitHub
parent 00251f710e
commit 63855d5c2a

View File

@ -446,7 +446,7 @@ impl BigTable {
T: serde::de::DeserializeOwned,
{
let row_data = self.get_row_data(table, Some(key.clone()), None, 1).await?;
let (row_key, data) = &row_data[0];
let (row_key, data) = &row_data.get(0).ok_or_else(|| Error::RowNotFound)?;
deserialize_cell_data(data, table, row_key.to_string())
}