mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-23 11:42:56 +03:00
cleanup
This commit is contained in:
parent
589536c2c3
commit
0ddec47611
@ -36,20 +36,6 @@ impl AsyncFetchJob {
|
|||||||
)))),
|
)))),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
|
||||||
pub fn result(&self) -> Option<Result<()>> {
|
|
||||||
if let Ok(mut state) = self.state.lock() {
|
|
||||||
if let Some(state) = state.take() {
|
|
||||||
return match state {
|
|
||||||
JobState::Request(_) => None,
|
|
||||||
JobState::Response(result) => Some(result),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
None
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl AsyncJob for AsyncFetchJob {
|
impl AsyncJob for AsyncFetchJob {
|
||||||
|
@ -230,6 +230,7 @@ impl AsyncSyntaxJob {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///
|
||||||
pub fn result(&self) -> Option<SyntaxText> {
|
pub fn result(&self) -> Option<SyntaxText> {
|
||||||
if let Ok(mut state) = self.state.lock() {
|
if let Ok(mut state) = self.state.lock() {
|
||||||
if let Some(state) = state.take() {
|
if let Some(state) = state.take() {
|
||||||
|
Loading…
Reference in New Issue
Block a user