Skip to content

Commit

Permalink
chore: codefmt
Browse files Browse the repository at this point in the history
  • Loading branch information
wszhdshys committed Nov 14, 2024
1 parent 3ba591e commit 63550e5
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions src/binder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,17 +227,11 @@ impl<'a, T: Transaction> BinderContext<'a, T> {

pub fn view(&self, view_name: TableName) -> Result<Option<&View>, DatabaseError> {
if let Some(real_name) = self.table_aliases.get(view_name.as_ref()) {
self.transaction.view(
self.table_cache,
self.view_cache,
real_name.clone(),
)
self.transaction
.view(self.table_cache, self.view_cache, real_name.clone())
} else {
self.transaction.view(
self.table_cache,
self.view_cache,
view_name.clone(),
)
self.transaction
.view(self.table_cache, self.view_cache, view_name.clone())
}
}

Expand All @@ -260,17 +254,11 @@ impl<'a, T: Transaction> BinderContext<'a, T> {

if source.is_none() && !only_table {
source = if let Some(real_name) = self.table_aliases.get(table_name.as_ref()) {
self.transaction.view(
self.table_cache,
self.view_cache,
real_name.clone(),
)
self.transaction
.view(self.table_cache, self.view_cache, real_name.clone())
} else {
self.transaction.view(
self.table_cache,
self.view_cache,
table_name.clone(),
)
self.transaction
.view(self.table_cache, self.view_cache, table_name.clone())
}?
.map(Source::View);
}
Expand Down

0 comments on commit 63550e5

Please sign in to comment.