Quellcode durchsuchen

apply review comment: use the runtime_error directly when possible

Tamo vor 1 Woche
Ursprung
Commit
c82b39a6c8
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1 2
      numbat/src/lib.rs

+ 1 - 2
numbat/src/lib.rs

@@ -764,8 +764,7 @@ impl Context {
 
                             if erc.is_none() {
                                 return Err(Box::new(NumbatError::RuntimeError(
-                                    self.interpreter
-                                        .runtime_error(RuntimeErrorKind::CouldNotLoadExchangeRates),
+                                    self.runtime_error(RuntimeErrorKind::CouldNotLoadExchangeRates),
                                 )));
                             }
                         }