Skip to content
Snippets Groups Projects
Unverified Commit e6f80ff0 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

Remove unused var `card-or-throw` (#48057)

parent ac1a651d
Branches embedding-settings-sdk-mm
Tags
No related merge requests found
......@@ -122,14 +122,6 @@
card-id :- ::lib.schema.id/card]
(lib.metadata.protocols/card (->metadata-provider metadata-providerable) card-id))
(mu/defn card-or-throw :- ::lib.schema.metadata/card
"Like [[card]], but throws if the Card is not found."
[metadata-providerable :- ::lib.schema.metadata/metadata-providerable
card-id :- ::lib.schema.id/card]
(or (card metadata-providerable card-id)
(throw (ex-info (i18n/tru "Card {0} does not exist, or belongs to a different Database." (pr-str card-id))
{:card-id card-id}))))
(mu/defn segment :- [:maybe ::lib.schema.metadata/segment]
"Get metadata for the Segment with `segment-id`, if it can be found."
[metadata-providerable :- ::lib.schema.metadata/metadata-providerable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment