From 82eaceffc1d750832a2a66f206749d2dca968cce Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Fri, 21 Sep 2018 18:18:51 +0200 Subject: repo: split the Repo interface to avoid abstraction leak in RepoCache --- commands/add.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/add.go') diff --git a/commands/add.go b/commands/add.go index 3fa75f26..944f0a99 100644 --- a/commands/add.go +++ b/commands/add.go @@ -31,7 +31,7 @@ func runAddBug(cmd *cobra.Command, args []string) error { defer backend.Close() if addMessage == "" || addTitle == "" { - addTitle, addMessage, err = input.BugCreateEditorInput(backend.Repository(), addTitle, addMessage) + addTitle, addMessage, err = input.BugCreateEditorInput(backend, addTitle, addMessage) if err == input.ErrEmptyTitle { fmt.Println("Empty title, aborting.") -- cgit