Skip to content

Commit

Permalink
Merge pull request #1288 from erenoku/small_refactor
Browse files Browse the repository at this point in the history
Small refactor
  • Loading branch information
hannobraun authored Oct 30, 2022
2 parents 6e3f5b3 + b2c74ec commit 386937b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/fj-host/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ impl Host {
pub fn from_model(model: Model) -> Result<Self, Error> {
let watch_path = model.watch_path();
let evaluator = Evaluator::from_model(model);
let _watcher = match Watcher::watch_model(&watch_path, &evaluator) {
Ok(_watcher) => _watcher,
Err(e) => return Err(e),
};
let _watcher = Watcher::watch_model(&watch_path, &evaluator)?;

Ok(Self {
evaluator,
Expand Down

0 comments on commit 386937b

Please sign in to comment.