{"action":"closed","number":31,"pull_request":{"url":"https://api.github.com/repos/dudleycarr/ratelimit.js/pulls/31","id":59272374,"html_url":"https://github.com/dudleycarr/ratelimit.js/pull/31","diff_url":"https://github.com/dudleycarr/ratelimit.js/pull/31.diff","patch_url":"https://github.com/dudleycarr/ratelimit.js/pull/31.patch","issue_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/issues/31","number":31,"state":"closed","locked":false,"title":"Fix simplify whitelist blacklist lua code","user":{"login":"joshgummersall","id":1235378,"avatar_url":"https://avatars.githubusercontent.com/u/1235378?v=3","gravatar_id":"","url":"https://api.github.com/users/joshgummersall","html_url":"https://github.com/joshgummersall","followers_url":"https://api.github.com/users/joshgummersall/followers","following_url":"https://api.github.com/users/joshgummersall/following{/other_user}","gists_url":"https://api.github.com/users/joshgummersall/gists{/gist_id}","starred_url":"https://api.github.com/users/joshgummersall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshgummersall/subscriptions","organizations_url":"https://api.github.com/users/joshgummersall/orgs","repos_url":"https://api.github.com/users/joshgummersall/repos","events_url":"https://api.github.com/users/joshgummersall/events{/privacy}","received_events_url":"https://api.github.com/users/joshgummersall/received_events","type":"User","site_admin":false},"body":"Well, TIL (yesterday technically) that you can just include early\r\nreturns in Redis Lua code. All the code is more or less concatenated, so\r\nearly returns will immediately halt execution of the remaining bits of\r\ncode. The if checks previously used are unnecessary. This also combines\r\nthe check whitelist and check blacklist scripts into a single script as there\r\nis no real need to separate them.","created_at":"2016-02-13T17:30:29Z","updated_at":"2016-02-16T17:40:48Z","closed_at":"2016-02-16T17:40:46Z","merged_at":"2016-02-16T17:40:46Z","merge_commit_sha":"1e76257018c6440d0ace59a819b05e5d566a11b7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/pulls/31/commits","review_comments_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/pulls/31/comments","review_comment_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/issues/31/comments","statuses_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/statuses/2545237f84b27b93adeb59cd75095b178400e2fd","head":{"label":"dudleycarr:fix-simplify-whitelist-blacklist-lua-code","ref":"fix-simplify-whitelist-blacklist-lua-code","sha":"2545237f84b27b93adeb59cd75095b178400e2fd","user":{"login":"dudleycarr","id":218825,"avatar_url":"https://avatars.githubusercontent.com/u/218825?v=3","gravatar_id":"","url":"https://api.github.com/users/dudleycarr","html_url":"https://github.com/dudleycarr","followers_url":"https://api.github.com/users/dudleycarr/followers","following_url":"https://api.github.com/users/dudleycarr/following{/other_user}","gists_url":"https://api.github.com/users/dudleycarr/gists{/gist_id}","starred_url":"https://api.github.com/users/dudleycarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dudleycarr/subscriptions","organizations_url":"https://api.github.com/users/dudleycarr/orgs","repos_url":"https://api.github.com/users/dudleycarr/repos","events_url":"https://api.github.com/users/dudleycarr/events{/privacy}","received_events_url":"https://api.github.com/users/dudleycarr/received_events","type":"User","site_admin":false},"repo":{"id":29026472,"name":"ratelimit.js","full_name":"dudleycarr/ratelimit.js","owner":{"login":"dudleycarr","id":218825,"avatar_url":"https://avatars.githubusercontent.com/u/218825?v=3","gravatar_id":"","url":"https://api.github.com/users/dudleycarr","html_url":"https://github.com/dudleycarr","followers_url":"https://api.github.com/users/dudleycarr/followers","following_url":"https://api.github.com/users/dudleycarr/following{/other_user}","gists_url":"https://api.github.com/users/dudleycarr/gists{/gist_id}","starred_url":"https://api.github.com/users/dudleycarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dudleycarr/subscriptions","organizations_url":"https://api.github.com/users/dudleycarr/orgs","repos_url":"https://api.github.com/users/dudleycarr/repos","events_url":"https://api.github.com/users/dudleycarr/events{/privacy}","received_events_url":"https://api.github.com/users/dudleycarr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dudleycarr/ratelimit.js","description":"NodeJS library for rate limiting using sliding windows stored in Redis","fork":false,"url":"https://api.github.com/repos/dudleycarr/ratelimit.js","forks_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/forks","keys_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/teams","hooks_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/hooks","issue_events_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/issues/events{/number}","events_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/events","assignees_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/assignees{/user}","branches_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/branches{/branch}","tags_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/tags","blobs_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/statuses/{sha}","languages_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/languages","stargazers_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/stargazers","contributors_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/contributors","subscribers_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/subscribers","subscription_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/subscription","commits_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/contents/{+path}","compare_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/merges","archive_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/downloads","issues_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/issues{/number}","pulls_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/pulls{/number}","milestones_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/milestones{/number}","notifications_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/labels{/name}","releases_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/releases{/id}","deployments_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/deployments","created_at":"2015-01-09T17:08:41Z","updated_at":"2016-02-02T13:17:59Z","pushed_at":"2016-02-16T17:40:46Z","git_url":"git://github.com/dudleycarr/ratelimit.js.git","ssh_url":"git@github.com:dudleycarr/ratelimit.js.git","clone_url":"https://github.com/dudleycarr/ratelimit.js.git","svn_url":"https://github.com/dudleycarr/ratelimit.js","homepage":"http://ratelimit.io","size":75,"stargazers_count":16,"watchers_count":16,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":16,"default_branch":"master"}},"base":{"label":"dudleycarr:master","ref":"master","sha":"69066ae65558552f5e274878cf341d8391be8d96","user":{"login":"dudleycarr","id":218825,"avatar_url":"https://avatars.githubusercontent.com/u/218825?v=3","gravatar_id":"","url":"https://api.github.com/users/dudleycarr","html_url":"https://github.com/dudleycarr","followers_url":"https://api.github.com/users/dudleycarr/followers","following_url":"https://api.github.com/users/dudleycarr/following{/other_user}","gists_url":"https://api.github.com/users/dudleycarr/gists{/gist_id}","starred_url":"https://api.github.com/users/dudleycarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dudleycarr/subscriptions","organizations_url":"https://api.github.com/users/dudleycarr/orgs","repos_url":"https://api.github.com/users/dudleycarr/repos","events_url":"https://api.github.com/users/dudleycarr/events{/privacy}","received_events_url":"https://api.github.com/users/dudleycarr/received_events","type":"User","site_admin":false},"repo":{"id":29026472,"name":"ratelimit.js","full_name":"dudleycarr/ratelimit.js","owner":{"login":"dudleycarr","id":218825,"avatar_url":"https://avatars.githubusercontent.com/u/218825?v=3","gravatar_id":"","url":"https://api.github.com/users/dudleycarr","html_url":"https://github.com/dudleycarr","followers_url":"https://api.github.com/users/dudleycarr/followers","following_url":"https://api.github.com/users/dudleycarr/following{/other_user}","gists_url":"https://api.github.com/users/dudleycarr/gists{/gist_id}","starred_url":"https://api.github.com/users/dudleycarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dudleycarr/subscriptions","organizations_url":"https://api.github.com/users/dudleycarr/orgs","repos_url":"https://api.github.com/users/dudleycarr/repos","events_url":"https://api.github.com/users/dudleycarr/events{/privacy}","received_events_url":"https://api.github.com/users/dudleycarr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dudleycarr/ratelimit.js","description":"NodeJS library for rate limiting using sliding windows stored in Redis","fork":false,"url":"https://api.github.com/repos/dudleycarr/ratelimit.js","forks_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/forks","keys_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/teams","hooks_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/hooks","issue_events_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/issues/events{/number}","events_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/events","assignees_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/assignees{/user}","branches_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/branches{/branch}","tags_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/tags","blobs_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/statuses/{sha}","languages_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/languages","stargazers_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/stargazers","contributors_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/contributors","subscribers_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/subscribers","subscription_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/subscription","commits_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/contents/{+path}","compare_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/merges","archive_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/downloads","issues_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/issues{/number}","pulls_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/pulls{/number}","milestones_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/milestones{/number}","notifications_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/labels{/name}","releases_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/releases{/id}","deployments_url":"https://api.github.com/repos/dudleycarr/ratelimit.js/deployments","created_at":"2015-01-09T17:08:41Z","updated_at":"2016-02-02T13:17:59Z","pushed_at":"2016-02-16T17:40:46Z","git_url":"git://github.com/dudleycarr/ratelimit.js.git","ssh_url":"git@github.com:dudleycarr/ratelimit.js.git","clone_url":"https://github.com/dudleycarr/ratelimit.js.git","svn_url":"https://github.com/dudleycarr/ratelimit.js","homepage":"http://ratelimit.io","size":75,"stargazers_count":16,"watchers_count":16,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dudleycarr/ratelimit.js/pulls/31"},"html":{"href":"https://github.com/dudleycarr/ratelimit.js/pull/31"},"issue":{"href":"https://api.github.com/repos/dudleycarr/ratelimit.js/issues/31"},"comments":{"href":"https://api.github.com/repos/dudleycarr/ratelimit.js/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/dudleycarr/ratelimit.js/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/dudleycarr/ratelimit.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dudleycarr/ratelimit.js/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/dudleycarr/ratelimit.js/statuses/2545237f84b27b93adeb59cd75095b178400e2fd"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"joshgummersall","id":1235378,"avatar_url":"https://avatars.githubusercontent.com/u/1235378?v=3","gravatar_id":"","url":"https://api.github.com/users/joshgummersall","html_url":"https://github.com/joshgummersall","followers_url":"https://api.github.com/users/joshgummersall/followers","following_url":"https://api.github.com/users/joshgummersall/following{/other_user}","gists_url":"https://api.github.com/users/joshgummersall/gists{/gist_id}","starred_url":"https://api.github.com/users/joshgummersall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshgummersall/subscriptions","organizations_url":"https://api.github.com/users/joshgummersall/orgs","repos_url":"https://api.github.com/users/joshgummersall/repos","events_url":"https://api.github.com/users/joshgummersall/events{/privacy}","received_events_url":"https://api.github.com/users/joshgummersall/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":4,"additions":31,"deletions":55,"changed_files":9}}