Browse Source

apply review comment: use the runtime_error directly when possible

Tamo 1 tuần trước cách đây
mục cha
commit
c82b39a6c8
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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),
                                 )));
                             }
                         }