{"comment":{"url":"https://api.github.com/repos/Amoralyn/note_app/comments/16264390","html_url":"https://github.com/Amoralyn/note_app/commit/0a789a6793264c92f9cd1d40d7bccf9981ab5306#commitcomment-16264390","id":16264390,"user":{"login":"andela-iokonkwo","id":7690338,"avatar_url":"https://avatars.githubusercontent.com/u/7690338?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-iokonkwo","html_url":"https://github.com/andela-iokonkwo","followers_url":"https://api.github.com/users/andela-iokonkwo/followers","following_url":"https://api.github.com/users/andela-iokonkwo/following{/other_user}","gists_url":"https://api.github.com/users/andela-iokonkwo/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-iokonkwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-iokonkwo/subscriptions","organizations_url":"https://api.github.com/users/andela-iokonkwo/orgs","repos_url":"https://api.github.com/users/andela-iokonkwo/repos","events_url":"https://api.github.com/users/andela-iokonkwo/events{/privacy}","received_events_url":"https://api.github.com/users/andela-iokonkwo/received_events","type":"User","site_admin":false},"position":10,"line":39,"path":"lib/note_app.rb","commit_id":"0a789a6793264c92f9cd1d40d7bccf9981ab5306","created_at":"2016-02-23T10:42:33Z","updated_at":"2016-02-23T10:42:33Z","body":"This logic is flawed. You are basically saying that if we have 5 notes that has that search text, we will have `Showing results for search` 5 times. Also the else block loops through all the items we are currently looping through, this code can be better organized to do the right thing."}}