diff options
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/console/helper/table_cell.rs')
| -rw-r--r-- | crates/shirabe-external-packages/src/symfony/console/helper/table_cell.rs | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/console/helper/table_cell.rs b/crates/shirabe-external-packages/src/symfony/console/helper/table_cell.rs index 3f1b719..b737cbc 100644 --- a/crates/shirabe-external-packages/src/symfony/console/helper/table_cell.rs +++ b/crates/shirabe-external-packages/src/symfony/console/helper/table_cell.rs @@ -47,18 +47,17 @@ impl TableCell { )); } - if let Some(style) = options.get("style") { - if !matches!(style, TableCellOption::Style(_)) - && !matches!(style, TableCellOption::Null) - { - return Err(InvalidArgumentException( - shirabe_php_shim::InvalidArgumentException { - message: "The style option must be an instance of \"TableCellStyle\"." - .to_string(), - code: 0, - }, - )); - } + if let Some(style) = options.get("style") + && !matches!(style, TableCellOption::Style(_)) + && !matches!(style, TableCellOption::Null) + { + return Err(InvalidArgumentException( + shirabe_php_shim::InvalidArgumentException { + message: "The style option must be an instance of \"TableCellStyle\"." + .to_string(), + code: 0, + }, + )); } for (key, option) in options { |
