{"action":"opened","issue":{"url":"https://api.github.com/repos/sbtourist/Journal.IO/issues/59","labels_url":"https://api.github.com/repos/sbtourist/Journal.IO/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/sbtourist/Journal.IO/issues/59/comments","events_url":"https://api.github.com/repos/sbtourist/Journal.IO/issues/59/events","html_url":"https://github.com/sbtourist/Journal.IO/issues/59","id":86680285,"number":59,"title":"README: unused variable `sync`","user":{"login":"stuartsierra","id":95044,"avatar_url":"https://avatars.githubusercontent.com/u/95044?v=3","gravatar_id":"","url":"https://api.github.com/users/stuartsierra","html_url":"https://github.com/stuartsierra","followers_url":"https://api.github.com/users/stuartsierra/followers","following_url":"https://api.github.com/users/stuartsierra/following{/other_user}","gists_url":"https://api.github.com/users/stuartsierra/gists{/gist_id}","starred_url":"https://api.github.com/users/stuartsierra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuartsierra/subscriptions","organizations_url":"https://api.github.com/users/stuartsierra/orgs","repos_url":"https://api.github.com/users/stuartsierra/repos","events_url":"https://api.github.com/users/stuartsierra/events{/privacy}","received_events_url":"https://api.github.com/users/stuartsierra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-09T17:55:09Z","updated_at":"2015-06-09T17:55:09Z","closed_at":null,"body":"In the README, under \"Write some records\", the boolean variable `sync` is unused:\r\n\r\n```\r\nfor (int i = 0; i < writes; i++) {\r\n    boolean sync = i % 2 == 0 ? true : false;\r\n    journal.write(new String(\"DATA\" + i), WriteType.SYNC);\r\n}\r\n```\r\n\r\nThis might have originated with this example in the [HawtJournal README](https://github.com/fusesource/hawtjournal/blob/48aad0620a667d69a8fc22980916f94046a0658e/readme.md):\r\n\r\n```\r\nfor (int i = 0; i < writes; i++) {\r\n    boolean sync = i % 2 == 0 ? true : false;\r\n    journal.write(ByteBuffer.wrap(new String(\"DATA\" + i).getBytes(\"UTF-8\")), sync);\r\n}\r\n```"}}