Refactor long line for more readability
This commit is contained in:
parent
24c73325f3
commit
07d4c45b3f
1 changed files with 2 additions and 3 deletions
|
@ -207,9 +207,8 @@ impl<'a> IntoTask<'a> for TTask {
|
||||||
.and_then(|mut fle| {
|
.and_then(|mut fle| {
|
||||||
{
|
{
|
||||||
let mut hdr = fle.get_header_mut();
|
let mut hdr = fle.get_header_mut();
|
||||||
if try!(hdr.read("todo").map_err_into(TodoErrorKind::StoreError))
|
let read = hdr.read("todo").map_err_into(TodoErrorKind::StoreError);
|
||||||
.is_none()
|
if try!(read).is_none() {
|
||||||
{
|
|
||||||
try!(hdr
|
try!(hdr
|
||||||
.set("todo", Value::Table(BTreeMap::new()))
|
.set("todo", Value::Table(BTreeMap::new()))
|
||||||
.map_err_into(TodoErrorKind::StoreError));
|
.map_err_into(TodoErrorKind::StoreError));
|
||||||
|
|
Loading…
Reference in a new issue