mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
remove status relation
This commit is contained in:
parent
e3a6796627
commit
9f2d9ce110
@ -43,17 +43,6 @@ impl Meta {
|
||||
// Setters
|
||||
|
||||
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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user