Skip to content

Commit

Permalink
Inline redundant variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Mar 22, 2023
1 parent 2b36ea2 commit cb578fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/fj-kernel/src/services/objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ impl State for Objects {

fn decide(&self, command: Self::Command, events: &mut Vec<Self::Event>) {
let Operation::InsertObject { object } = command;
let event = InsertObject { object };
events.push(event);
events.push(InsertObject { object });
}

fn evolve(&mut self, event: &Self::Event) {
Expand Down

0 comments on commit cb578fc

Please sign in to comment.