Skip to content

Commit

Permalink
Update move/operators/sources/operators/operators.move
Browse files Browse the repository at this point in the history
Co-authored-by: Milap Sheth <[email protected]>
  • Loading branch information
re1ro and milapsheth authored Jun 12, 2024
1 parent 45813a6 commit 2472816
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions move/operators/sources/operators/operators.move
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ module operators::operators {

/// Removes a capability from the `Operators` struct.
public fun remove_cap<T: key + store>(self: &mut Operators, _: &OwnerCap, cap_id: ID): T {
assert!(self.caps.contains(cap_id), 0);

self.caps.remove<ID, T>(cap_id)
}

Expand Down

0 comments on commit 2472816

Please sign in to comment.