Skip to content

Commit

Permalink
Fixed ineffassign issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Miller committed Feb 27, 2017
1 parent eb69b1c commit 4739594
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/qnote/commands/merge_books.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func mergeBooksCmdRun(cmd *cobra.Command, args []string) {
exitOnError(err)

err = idxConn.DeleteBook(book1)
exitOnError(err)

notes, err := dbConn.GetAllBookNotes(book2, sortBy, displayOrder)
exitOnError(err)
Expand Down
4 changes: 4 additions & 0 deletions cmd/shared/utils/editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ func (e *Editor) Open() error {
defer f.Close()

body, err := ioutil.ReadAll(f)
if err != nil {
e.open = false
return err
}
e.text = string(body)

e.open = false
Expand Down

0 comments on commit 4739594

Please sign in to comment.