mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
remove status relation
This commit is contained in:
parent
e3a6796627
commit
9f2d9ce110
1 changed files with 0 additions and 11 deletions
|
|
@ -43,17 +43,6 @@ impl Meta {
|
||||||
// Setters
|
// Setters
|
||||||
|
|
||||||
pub fn set_status(&self, status: Status) -> &Self {
|
pub fn set_status(&self, status: Status) -> &Self {
|
||||||
match status {
|
|
||||||
Status::Redirect => {
|
|
||||||
if self.redirect.borrow().is_none() {
|
|
||||||
panic!("Set `redirect` before use this status")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
_ => {
|
|
||||||
self.unset_redirect();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
self.status.replace(status);
|
self.status.replace(status);
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue