From 96749183968e75eaeb48614af71f2d03fa17dba0 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Thu, 18 Aug 2022 12:15:38 +0300 Subject: [PATCH] cli/edit: allow to edit a task info --- src/cli/edit.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/cli/edit.rs b/src/cli/edit.rs index 22e8527..dd4115b 100644 --- a/src/cli/edit.rs +++ b/src/cli/edit.rs @@ -42,16 +42,6 @@ pub struct Args { } pub fn execute(repo: impl Repository, args: Args) { - match repo.get_current_task_opt() { - Ok(Some(_)) => { - return eprintln!("You can edit task only when you don't have an active task, yet") - } - Err(err) => { - return eprintln!("Cannot read current task: {}", err); - } - _ => {} - } - let res = repo.update_task( args.idx, repo::UpdateTaskData {