Skip to content

Commit

Permalink
chore: improve the code
Browse files Browse the repository at this point in the history
  • Loading branch information
e1ijah1 committed Jan 11, 2023
1 parent 1f28fa8 commit 80e8e91
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/catalog/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,6 @@ pub enum Error {
source: table::error::Error,
},

#[snafu(display(
"Failed to delete table creation record to system catalog, source: {}",
source
))]
DeleteCatalogRecord {
#[snafu(backtrace)]
source: table::error::Error,
},

#[snafu(display("Illegal catalog manager state: {}", msg))]
IllegalManagerState { backtrace: Backtrace, msg: String },

Expand Down Expand Up @@ -246,7 +237,6 @@ impl ErrorExt for Error {
Error::OpenSystemCatalog { source, .. }
| Error::CreateSystemCatalog { source, .. }
| Error::InsertCatalogRecord { source, .. }
| Error::DeleteCatalogRecord { source, .. }
| Error::OpenTable { source, .. }
| Error::CreateTable { source, .. } => source.status_code(),
Error::MetaSrv { source, .. } => source.status_code(),
Expand Down

0 comments on commit 80e8e91

Please sign in to comment.