Skip to content

Commit a7096d8

Browse files
committed
Refactor roundabout processing
1 parent ecc505b commit a7096d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ever2boost/evernote_authorizer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def import(output_dir)
6262
note_guids = self.fetch_notes(filter).notes.map(&:guid)
6363
# TODO: assign the booleans
6464
en_notes = note_guids.map {|note_guid| self.note_store.getNote(self.developer_token, note_guid, true, true, false, false)}
65-
notes = en_notes.map {|note| Note.new(title: note.title, content: note.content, notebook_guid: note.notebookGuid)}
66-
notes.each do |note|
65+
en_notes. each do |en_note|
66+
note = Note.new(title: en_note.title, content: en_note.content, notebook_guid: en_note.notebookGuid)
6767
notebook_list.each do |list|
6868
# TODO: break if note not found
6969
CsonGenerator.output(list.hash, note, output_dir) if list.guid == note.notebook_guid

0 commit comments

Comments
 (0)