Skip to content

Commit

Permalink
cmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Sep 19, 2024
1 parent f795c3a commit d67dc75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/torii/grpc/src/server/subscriptions/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ impl Service {
continue;
}

// This should NEVER be None
let model = entity.updated_model.as_ref().unwrap().as_struct().unwrap().clone();

Check warning on line 188 in crates/torii/grpc/src/server/subscriptions/entity.rs

View check run for this annotation

Codecov / codecov/patch

crates/torii/grpc/src/server/subscriptions/entity.rs#L187-L188

Added lines #L187 - L188 were not covered by tests
let resp = proto::world::SubscribeEntityResponse {
entity: Some(proto::types::Entity {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ impl Service {
continue;
}

// This should NEVER be None
let model = entity.updated_model.as_ref().unwrap().as_struct().unwrap().clone();

Check warning on line 169 in crates/torii/grpc/src/server/subscriptions/event_message.rs

View check run for this annotation

Codecov / codecov/patch

crates/torii/grpc/src/server/subscriptions/event_message.rs#L168-L169

Added lines #L168 - L169 were not covered by tests
let resp = proto::world::SubscribeEntityResponse {
entity: Some(proto::types::Entity {
Expand Down

0 comments on commit d67dc75

Please sign in to comment.