Przeglądaj źródła

apply review comment: use the runtime_error directly when possible

Tamo 1 tydzień temu
rodzic
commit
c82b39a6c8
1 zmienionych plików z 1 dodań i 2 usunięć
  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),
                                 )));
                             }
                         }