FIX: Copilot's suggestions
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
5ff4774c5a
commit
1053d00d22
@@ -105,7 +105,7 @@ impl Model {
|
||||
if !currencies.iter().any(|e| e == currency) {
|
||||
currencies.push(currency);
|
||||
}
|
||||
// We try to parse as number
|
||||
// Try to parse as a formatted number (e.g., dates, currencies, percentages)
|
||||
if let Ok((v, _number_format)) = parse_formatted_number(&s, ¤cies) {
|
||||
return Ok(v);
|
||||
}
|
||||
|
||||
@@ -1168,7 +1168,7 @@ impl Model {
|
||||
|
||||
let multiple = self.evaluate_node_in_context(&args[1], cell);
|
||||
|
||||
// if both are empty => #N/A
|
||||
// if either is empty => #N/A
|
||||
if matches!(value, CalcResult::EmptyArg) || matches!(multiple, CalcResult::EmptyArg) {
|
||||
return CalcResult::Error {
|
||||
error: Error::NA,
|
||||
|
||||
Reference in New Issue
Block a user