Skip to content

Commit

Permalink
prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
zzau13 committed Sep 3, 2024
1 parent 01c9fd2 commit f33c2e4
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,10 @@ impl SqlRenderer for PostgresFlavour {
out.extend(after_statements);
out
} else {
let alter_tables: Box<dyn Iterator<Item = String>> = if actions.is_empty() {
Box::new(stats.into_iter())
} else {
Box::new(stats.into_iter().chain(std::iter::once(actions.join(",\n"))))
};
let mut alter_tables: Box<dyn Iterator<Item = String>> = Box::new(stats.into_iter());
if !actions.is_empty() {
alter_tables = Box::new(alter_tables.chain(std::iter::once(actions.join(",\n"))));
}
before_statements
.into_iter()
.chain(alter_tables.map(|s| {
Expand Down

0 comments on commit f33c2e4

Please sign in to comment.