{"action":"created","comment":{"url":"https://api.github.com/repos/opentoken-io/opentoken/pulls/comments/77676393","id":77676393,"diff_hunk":"@@ -0,0 +1,39 @@\n+\"use strict\";\n+\n+module.exports = () => {\n+    /**\n+     * Converts a string into a buffer. Does not change the input if it is\n+     * already a buffer.\n+     *\n+     * @param {(Buffer|string)} stringOrBuffer\n+     * @return {(Buffer|string)}\n+     */\n+    function toBuffer(stringOrBuffer) {\n+        if (!Buffer.isBuffer(stringOrBuffer)) {\n+            stringOrBuffer = new Buffer(stringOrBuffer.toString(), \"binary\");","path":"lib/binary-buffer.js","position":13,"original_position":13,"commit_id":"7ff4be2d391edb9f98c90e7e3a38d911452158df","original_commit_id":"7ff4be2d391edb9f98c90e7e3a38d911452158df","user":{"login":"lnagle93","id":13711016,"avatar_url":"https://avatars.githubusercontent.com/u/13711016?v=3","gravatar_id":"","url":"https://api.github.com/users/lnagle93","html_url":"https://github.com/lnagle93","followers_url":"https://api.github.com/users/lnagle93/followers","following_url":"https://api.github.com/users/lnagle93/following{/other_user}","gists_url":"https://api.github.com/users/lnagle93/gists{/gist_id}","starred_url":"https://api.github.com/users/lnagle93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lnagle93/subscriptions","organizations_url":"https://api.github.com/users/lnagle93/orgs","repos_url":"https://api.github.com/users/lnagle93/repos","events_url":"https://api.github.com/users/lnagle93/events{/privacy}","received_events_url":"https://api.github.com/users/lnagle93/received_events","type":"User","site_admin":false},"body":"Eslint is barking about the first change. Should I add `/* eslint-disable consistent-return */`to the top of the file as well (`// eslint-disable-next-line consistent-return` was not working)?\r\n\r\n`.toString()` has been removed.","created_at":"2016-09-06T17:04:31Z","updated_at":"2016-09-06T17:04:31Z","html_url":"https://github.com/opentoken-io/opentoken/pull/112#discussion_r77676393","pull_request_url":"https://api.github.com/repos/opentoken-io/opentoken/pulls/112","_links":{"self":{"href":"https://api.github.com/repos/opentoken-io/opentoken/pulls/comments/77676393"},"html":{"href":"https://github.com/opentoken-io/opentoken/pull/112#discussion_r77676393"},"pull_request":{"href":"https://api.github.com/repos/opentoken-io/opentoken/pulls/112"}}},"pull_request":{"url":"https://api.github.com/repos/opentoken-io/opentoken/pulls/112","id":84147018,"html_url":"https://github.com/opentoken-io/opentoken/pull/112","diff_url":"https://github.com/opentoken-io/opentoken/pull/112.diff","patch_url":"https://github.com/opentoken-io/opentoken/pull/112.patch","issue_url":"https://api.github.com/repos/opentoken-io/opentoken/issues/112","number":112,"state":"open","locked":false,"title":"Binary buffer module","user":{"login":"lnagle93","id":13711016,"avatar_url":"https://avatars.githubusercontent.com/u/13711016?v=3","gravatar_id":"","url":"https://api.github.com/users/lnagle93","html_url":"https://github.com/lnagle93","followers_url":"https://api.github.com/users/lnagle93/followers","following_url":"https://api.github.com/users/lnagle93/following{/other_user}","gists_url":"https://api.github.com/users/lnagle93/gists{/gist_id}","starred_url":"https://api.github.com/users/lnagle93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lnagle93/subscriptions","organizations_url":"https://api.github.com/users/lnagle93/orgs","repos_url":"https://api.github.com/users/lnagle93/repos","events_url":"https://api.github.com/users/lnagle93/events{/privacy}","received_events_url":"https://api.github.com/users/lnagle93/received_events","type":"User","site_admin":false},"body":"This pull request addresses this issue: https://github.com/opentoken-io/opentoken/issues/109","created_at":"2016-09-06T15:45:51Z","updated_at":"2016-09-06T17:04:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"81811e2a64c8015b343189cc2b1ba5c6832c2c1e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/opentoken-io/opentoken/pulls/112/commits","review_comments_url":"https://api.github.com/repos/opentoken-io/opentoken/pulls/112/comments","review_comment_url":"https://api.github.com/repos/opentoken-io/opentoken/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opentoken-io/opentoken/issues/112/comments","statuses_url":"https://api.github.com/repos/opentoken-io/opentoken/statuses/7ff4be2d391edb9f98c90e7e3a38d911452158df","head":{"label":"lnagle93:binary-buffer-module","ref":"binary-buffer-module","sha":"7ff4be2d391edb9f98c90e7e3a38d911452158df","user":{"login":"lnagle93","id":13711016,"avatar_url":"https://avatars.githubusercontent.com/u/13711016?v=3","gravatar_id":"","url":"https://api.github.com/users/lnagle93","html_url":"https://github.com/lnagle93","followers_url":"https://api.github.com/users/lnagle93/followers","following_url":"https://api.github.com/users/lnagle93/following{/other_user}","gists_url":"https://api.github.com/users/lnagle93/gists{/gist_id}","starred_url":"https://api.github.com/users/lnagle93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lnagle93/subscriptions","organizations_url":"https://api.github.com/users/lnagle93/orgs","repos_url":"https://api.github.com/users/lnagle93/repos","events_url":"https://api.github.com/users/lnagle93/events{/privacy}","received_events_url":"https://api.github.com/users/lnagle93/received_events","type":"User","site_admin":false},"repo":{"id":67440068,"name":"opentoken","full_name":"lnagle93/opentoken","owner":{"login":"lnagle93","id":13711016,"avatar_url":"https://avatars.githubusercontent.com/u/13711016?v=3","gravatar_id":"","url":"https://api.github.com/users/lnagle93","html_url":"https://github.com/lnagle93","followers_url":"https://api.github.com/users/lnagle93/followers","following_url":"https://api.github.com/users/lnagle93/following{/other_user}","gists_url":"https://api.github.com/users/lnagle93/gists{/gist_id}","starred_url":"https://api.github.com/users/lnagle93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lnagle93/subscriptions","organizations_url":"https://api.github.com/users/lnagle93/orgs","repos_url":"https://api.github.com/users/lnagle93/repos","events_url":"https://api.github.com/users/lnagle93/events{/privacy}","received_events_url":"https://api.github.com/users/lnagle93/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lnagle93/opentoken","description":"Public and free software API to tokenize or encrypt data.","fork":true,"url":"https://api.github.com/repos/lnagle93/opentoken","forks_url":"https://api.github.com/repos/lnagle93/opentoken/forks","keys_url":"https://api.github.com/repos/lnagle93/opentoken/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lnagle93/opentoken/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lnagle93/opentoken/teams","hooks_url":"https://api.github.com/repos/lnagle93/opentoken/hooks","issue_events_url":"https://api.github.com/repos/lnagle93/opentoken/issues/events{/number}","events_url":"https://api.github.com/repos/lnagle93/opentoken/events","assignees_url":"https://api.github.com/repos/lnagle93/opentoken/assignees{/user}","branches_url":"https://api.github.com/repos/lnagle93/opentoken/branches{/branch}","tags_url":"https://api.github.com/repos/lnagle93/opentoken/tags","blobs_url":"https://api.github.com/repos/lnagle93/opentoken/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lnagle93/opentoken/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lnagle93/opentoken/git/refs{/sha}","trees_url":"https://api.github.com/repos/lnagle93/opentoken/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lnagle93/opentoken/statuses/{sha}","languages_url":"https://api.github.com/repos/lnagle93/opentoken/languages","stargazers_url":"https://api.github.com/repos/lnagle93/opentoken/stargazers","contributors_url":"https://api.github.com/repos/lnagle93/opentoken/contributors","subscribers_url":"https://api.github.com/repos/lnagle93/opentoken/subscribers","subscription_url":"https://api.github.com/repos/lnagle93/opentoken/subscription","commits_url":"https://api.github.com/repos/lnagle93/opentoken/commits{/sha}","git_commits_url":"https://api.github.com/repos/lnagle93/opentoken/git/commits{/sha}","comments_url":"https://api.github.com/repos/lnagle93/opentoken/comments{/number}","issue_comment_url":"https://api.github.com/repos/lnagle93/opentoken/issues/comments{/number}","contents_url":"https://api.github.com/repos/lnagle93/opentoken/contents/{+path}","compare_url":"https://api.github.com/repos/lnagle93/opentoken/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lnagle93/opentoken/merges","archive_url":"https://api.github.com/repos/lnagle93/opentoken/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lnagle93/opentoken/downloads","issues_url":"https://api.github.com/repos/lnagle93/opentoken/issues{/number}","pulls_url":"https://api.github.com/repos/lnagle93/opentoken/pulls{/number}","milestones_url":"https://api.github.com/repos/lnagle93/opentoken/milestones{/number}","notifications_url":"https://api.github.com/repos/lnagle93/opentoken/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lnagle93/opentoken/labels{/name}","releases_url":"https://api.github.com/repos/lnagle93/opentoken/releases{/id}","deployments_url":"https://api.github.com/repos/lnagle93/opentoken/deployments","created_at":"2016-09-05T17:42:24Z","updated_at":"2016-09-05T17:42:25Z","pushed_at":"2016-09-06T15:44:55Z","git_url":"git://github.com/lnagle93/opentoken.git","ssh_url":"git@github.com:lnagle93/opentoken.git","clone_url":"https://github.com/lnagle93/opentoken.git","svn_url":"https://github.com/lnagle93/opentoken","homepage":"","size":414,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"opentoken-io:master","ref":"master","sha":"9f3163690a0a8723f3ad787e90bce25ac466670d","user":{"login":"opentoken-io","id":17858137,"avatar_url":"https://avatars.githubusercontent.com/u/17858137?v=3","gravatar_id":"","url":"https://api.github.com/users/opentoken-io","html_url":"https://github.com/opentoken-io","followers_url":"https://api.github.com/users/opentoken-io/followers","following_url":"https://api.github.com/users/opentoken-io/following{/other_user}","gists_url":"https://api.github.com/users/opentoken-io/gists{/gist_id}","starred_url":"https://api.github.com/users/opentoken-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opentoken-io/subscriptions","organizations_url":"https://api.github.com/users/opentoken-io/orgs","repos_url":"https://api.github.com/users/opentoken-io/repos","events_url":"https://api.github.com/users/opentoken-io/events{/privacy}","received_events_url":"https://api.github.com/users/opentoken-io/received_events","type":"Organization","site_admin":false},"repo":{"id":54493906,"name":"opentoken","full_name":"opentoken-io/opentoken","owner":{"login":"opentoken-io","id":17858137,"avatar_url":"https://avatars.githubusercontent.com/u/17858137?v=3","gravatar_id":"","url":"https://api.github.com/users/opentoken-io","html_url":"https://github.com/opentoken-io","followers_url":"https://api.github.com/users/opentoken-io/followers","following_url":"https://api.github.com/users/opentoken-io/following{/other_user}","gists_url":"https://api.github.com/users/opentoken-io/gists{/gist_id}","starred_url":"https://api.github.com/users/opentoken-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opentoken-io/subscriptions","organizations_url":"https://api.github.com/users/opentoken-io/orgs","repos_url":"https://api.github.com/users/opentoken-io/repos","events_url":"https://api.github.com/users/opentoken-io/events{/privacy}","received_events_url":"https://api.github.com/users/opentoken-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opentoken-io/opentoken","description":"Public and free software API to tokenize or encrypt data.","fork":false,"url":"https://api.github.com/repos/opentoken-io/opentoken","forks_url":"https://api.github.com/repos/opentoken-io/opentoken/forks","keys_url":"https://api.github.com/repos/opentoken-io/opentoken/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opentoken-io/opentoken/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opentoken-io/opentoken/teams","hooks_url":"https://api.github.com/repos/opentoken-io/opentoken/hooks","issue_events_url":"https://api.github.com/repos/opentoken-io/opentoken/issues/events{/number}","events_url":"https://api.github.com/repos/opentoken-io/opentoken/events","assignees_url":"https://api.github.com/repos/opentoken-io/opentoken/assignees{/user}","branches_url":"https://api.github.com/repos/opentoken-io/opentoken/branches{/branch}","tags_url":"https://api.github.com/repos/opentoken-io/opentoken/tags","blobs_url":"https://api.github.com/repos/opentoken-io/opentoken/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opentoken-io/opentoken/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opentoken-io/opentoken/git/refs{/sha}","trees_url":"https://api.github.com/repos/opentoken-io/opentoken/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opentoken-io/opentoken/statuses/{sha}","languages_url":"https://api.github.com/repos/opentoken-io/opentoken/languages","stargazers_url":"https://api.github.com/repos/opentoken-io/opentoken/stargazers","contributors_url":"https://api.github.com/repos/opentoken-io/opentoken/contributors","subscribers_url":"https://api.github.com/repos/opentoken-io/opentoken/subscribers","subscription_url":"https://api.github.com/repos/opentoken-io/opentoken/subscription","commits_url":"https://api.github.com/repos/opentoken-io/opentoken/commits{/sha}","git_commits_url":"https://api.github.com/repos/opentoken-io/opentoken/git/commits{/sha}","comments_url":"https://api.github.com/repos/opentoken-io/opentoken/comments{/number}","issue_comment_url":"https://api.github.com/repos/opentoken-io/opentoken/issues/comments{/number}","contents_url":"https://api.github.com/repos/opentoken-io/opentoken/contents/{+path}","compare_url":"https://api.github.com/repos/opentoken-io/opentoken/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opentoken-io/opentoken/merges","archive_url":"https://api.github.com/repos/opentoken-io/opentoken/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opentoken-io/opentoken/downloads","issues_url":"https://api.github.com/repos/opentoken-io/opentoken/issues{/number}","pulls_url":"https://api.github.com/repos/opentoken-io/opentoken/pulls{/number}","milestones_url":"https://api.github.com/repos/opentoken-io/opentoken/milestones{/number}","notifications_url":"https://api.github.com/repos/opentoken-io/opentoken/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opentoken-io/opentoken/labels{/name}","releases_url":"https://api.github.com/repos/opentoken-io/opentoken/releases{/id}","deployments_url":"https://api.github.com/repos/opentoken-io/opentoken/deployments","created_at":"2016-03-22T17:10:18Z","updated_at":"2016-08-26T17:23:11Z","pushed_at":"2016-09-06T15:45:51Z","git_url":"git://github.com/opentoken-io/opentoken.git","ssh_url":"git@github.com:opentoken-io/opentoken.git","clone_url":"https://github.com/opentoken-io/opentoken.git","svn_url":"https://github.com/opentoken-io/opentoken","homepage":"","size":759,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":12,"forks":3,"open_issues":12,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opentoken-io/opentoken/pulls/112"},"html":{"href":"https://github.com/opentoken-io/opentoken/pull/112"},"issue":{"href":"https://api.github.com/repos/opentoken-io/opentoken/issues/112"},"comments":{"href":"https://api.github.com/repos/opentoken-io/opentoken/issues/112/comments"},"review_comments":{"href":"https://api.github.com/repos/opentoken-io/opentoken/pulls/112/comments"},"review_comment":{"href":"https://api.github.com/repos/opentoken-io/opentoken/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opentoken-io/opentoken/pulls/112/commits"},"statuses":{"href":"https://api.github.com/repos/opentoken-io/opentoken/statuses/7ff4be2d391edb9f98c90e7e3a38d911452158df"}}}}
{"actor":{"display_login":"lnagle93"}}