mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Remove unnecessary #partial switch
This commit is contained in:
@@ -212,12 +212,12 @@ write_html_table :: proc(w: io.Writer, tbl: ^Table) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
align_attribute :: proc(cell: ^Cell) -> string {
|
align_attribute :: proc(cell: ^Cell) -> string {
|
||||||
#partial switch cell.alignment {
|
switch cell.alignment {
|
||||||
case .Left: return ` align="left"`
|
case .Left: return ` align="left"`
|
||||||
case .Center: return ` align="center"`
|
case .Center: return ` align="center"`
|
||||||
case .Right: return ` align="right"`
|
case .Right: return ` align="right"`
|
||||||
}
|
}
|
||||||
return ""
|
unreachable()
|
||||||
}
|
}
|
||||||
|
|
||||||
if tbl.has_header_row {
|
if tbl.has_header_row {
|
||||||
|
|||||||
Reference in New Issue
Block a user