{"action":"closed","issue":{"url":"https://api.github.com/repos/nodeschool/discussions/issues/1171","labels_url":"https://api.github.com/repos/nodeschool/discussions/issues/1171/labels{/name}","comments_url":"https://api.github.com/repos/nodeschool/discussions/issues/1171/comments","events_url":"https://api.github.com/repos/nodeschool/discussions/issues/1171/events","html_url":"https://github.com/nodeschool/discussions/issues/1171","id":79822555,"number":1171,"title":"learnyounode Exercise 3 File IO Wrong?","user":{"login":"fhariyadi","id":2626871,"avatar_url":"https://avatars.githubusercontent.com/u/2626871?v=3","gravatar_id":"","url":"https://api.github.com/users/fhariyadi","html_url":"https://github.com/fhariyadi","followers_url":"https://api.github.com/users/fhariyadi/followers","following_url":"https://api.github.com/users/fhariyadi/following{/other_user}","gists_url":"https://api.github.com/users/fhariyadi/gists{/gist_id}","starred_url":"https://api.github.com/users/fhariyadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhariyadi/subscriptions","organizations_url":"https://api.github.com/users/fhariyadi/orgs","repos_url":"https://api.github.com/users/fhariyadi/repos","events_url":"https://api.github.com/users/fhariyadi/events{/privacy}","received_events_url":"https://api.github.com/users/fhariyadi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-23T11:39:33Z","updated_at":"2015-05-24T16:07:01Z","closed_at":"2015-05-24T16:07:01Z","body":"I think there is a bug on this exercise.\r\n\r\nEveryone solutions involve substract 1:\r\nconsole.log(contents.split('\\n').length - 1);\r\n\r\nIs this correct?\r\nI tried with my own file, it always short 1 line. I believe the right solution does not need to substract 1"}}