Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix has_metadata_value and has_shape result #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions atelier-core/src/model/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl Model {

/// Returns `true` if this model's **metadata** collection has a shape with the provided key`, else `false`.
pub fn has_metadata_value(&self, key: &str) -> bool {
!self.metadata.contains_key(key)
self.metadata.contains_key(key)
}

/// Returns the value in this model's **metadata** collection with the provide key.
Expand Down Expand Up @@ -189,7 +189,7 @@ impl Model {

/// Returns `true` if this model's **shapes** collection has a shape with the provided `ShapeID`, else `false`.
pub fn has_shape(&self, shape_id: &ShapeID) -> bool {
!self.shapes.contains_key(shape_id)
self.shapes.contains_key(shape_id)
}

/// Returns the shape in this model's **shapes** collection with the provided `ShapeID`.
Expand Down