{"action":"created","comment":{"url":"https://api.github.com/repos/harvest-platform/es-evaluator/pulls/comments/83719393","pull_request_review_id":4540558,"id":83719393,"diff_hunk":"@@ -0,0 +1,323 @@\n+package elastic\n+\n+// Negate wraps a term in a boolean \"not\" condition\n+func Negate(t Term) Term {\n+\tb := Term{\n+\t\t\"bool\": Term{\n+\t\t\t\"not\": t,\n+\t\t},\n+\t}\n+\treturn b","path":"elastic/types.go","position":10,"original_position":10,"commit_id":"d7d9d9d9704183addc31294eb22704154aa8eec4","original_commit_id":"d7d9d9d9704183addc31294eb22704154aa8eec4","user":{"login":"bruth","id":515142,"avatar_url":"https://avatars.githubusercontent.com/u/515142?v=3","gravatar_id":"","url":"https://api.github.com/users/bruth","html_url":"https://github.com/bruth","followers_url":"https://api.github.com/users/bruth/followers","following_url":"https://api.github.com/users/bruth/following{/other_user}","gists_url":"https://api.github.com/users/bruth/gists{/gist_id}","starred_url":"https://api.github.com/users/bruth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruth/subscriptions","organizations_url":"https://api.github.com/users/bruth/orgs","repos_url":"https://api.github.com/users/bruth/repos","events_url":"https://api.github.com/users/bruth/events{/privacy}","received_events_url":"https://api.github.com/users/bruth/received_events","type":"User","site_admin":false},"body":"Don't assign unused variables, just do:\r\n\r\n```go\r\nfunc Negate(t Term) Term {\r\n    return Term{\r\n        // ...\r\n    }\r\n}\r\n```","created_at":"2016-10-17T19:49:41Z","updated_at":"2016-10-17T19:49:41Z","html_url":"https://github.com/harvest-platform/es-evaluator/pull/2#discussion_r83719393","pull_request_url":"https://api.github.com/repos/harvest-platform/es-evaluator/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/harvest-platform/es-evaluator/pulls/comments/83719393"},"html":{"href":"https://github.com/harvest-platform/es-evaluator/pull/2#discussion_r83719393"},"pull_request":{"href":"https://api.github.com/repos/harvest-platform/es-evaluator/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/harvest-platform/es-evaluator/pulls/2","id":89671470,"html_url":"https://github.com/harvest-platform/es-evaluator/pull/2","diff_url":"https://github.com/harvest-platform/es-evaluator/pull/2.diff","patch_url":"https://github.com/harvest-platform/es-evaluator/pull/2.patch","issue_url":"https://api.github.com/repos/harvest-platform/es-evaluator/issues/2","number":2,"state":"open","locked":false,"title":"Address code review (10/14/16) comments","user":{"login":"gerpsh","id":1304975,"avatar_url":"https://avatars.githubusercontent.com/u/1304975?v=3","gravatar_id":"","url":"https://api.github.com/users/gerpsh","html_url":"https://github.com/gerpsh","followers_url":"https://api.github.com/users/gerpsh/followers","following_url":"https://api.github.com/users/gerpsh/following{/other_user}","gists_url":"https://api.github.com/users/gerpsh/gists{/gist_id}","starred_url":"https://api.github.com/users/gerpsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gerpsh/subscriptions","organizations_url":"https://api.github.com/users/gerpsh/orgs","repos_url":"https://api.github.com/users/gerpsh/repos","events_url":"https://api.github.com/users/gerpsh/events{/privacy}","received_events_url":"https://api.github.com/users/gerpsh/received_events","type":"User","site_admin":false},"body":"Addresses issues listed in #1 @bruth ","created_at":"2016-10-17T17:56:10Z","updated_at":"2016-10-17T19:50:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a7a4359186927979b0e989628065621ff0c1af6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/harvest-platform/es-evaluator/pulls/2/commits","review_comments_url":"https://api.github.com/repos/harvest-platform/es-evaluator/pulls/2/comments","review_comment_url":"https://api.github.com/repos/harvest-platform/es-evaluator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/harvest-platform/es-evaluator/issues/2/comments","statuses_url":"https://api.github.com/repos/harvest-platform/es-evaluator/statuses/d7d9d9d9704183addc31294eb22704154aa8eec4","head":{"label":"harvest-platform:codereview-10-14-16","ref":"codereview-10-14-16","sha":"d7d9d9d9704183addc31294eb22704154aa8eec4","user":{"login":"harvest-platform","id":19407587,"avatar_url":"https://avatars.githubusercontent.com/u/19407587?v=3","gravatar_id":"","url":"https://api.github.com/users/harvest-platform","html_url":"https://github.com/harvest-platform","followers_url":"https://api.github.com/users/harvest-platform/followers","following_url":"https://api.github.com/users/harvest-platform/following{/other_user}","gists_url":"https://api.github.com/users/harvest-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/harvest-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harvest-platform/subscriptions","organizations_url":"https://api.github.com/users/harvest-platform/orgs","repos_url":"https://api.github.com/users/harvest-platform/repos","events_url":"https://api.github.com/users/harvest-platform/events{/privacy}","received_events_url":"https://api.github.com/users/harvest-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":68299257,"name":"es-evaluator","full_name":"harvest-platform/es-evaluator","owner":{"login":"harvest-platform","id":19407587,"avatar_url":"https://avatars.githubusercontent.com/u/19407587?v=3","gravatar_id":"","url":"https://api.github.com/users/harvest-platform","html_url":"https://github.com/harvest-platform","followers_url":"https://api.github.com/users/harvest-platform/followers","following_url":"https://api.github.com/users/harvest-platform/following{/other_user}","gists_url":"https://api.github.com/users/harvest-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/harvest-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harvest-platform/subscriptions","organizations_url":"https://api.github.com/users/harvest-platform/orgs","repos_url":"https://api.github.com/users/harvest-platform/repos","events_url":"https://api.github.com/users/harvest-platform/events{/privacy}","received_events_url":"https://api.github.com/users/harvest-platform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/harvest-platform/es-evaluator","description":"Query evaluator for Elasticsearch backends","fork":false,"url":"https://api.github.com/repos/harvest-platform/es-evaluator","forks_url":"https://api.github.com/repos/harvest-platform/es-evaluator/forks","keys_url":"https://api.github.com/repos/harvest-platform/es-evaluator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harvest-platform/es-evaluator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harvest-platform/es-evaluator/teams","hooks_url":"https://api.github.com/repos/harvest-platform/es-evaluator/hooks","issue_events_url":"https://api.github.com/repos/harvest-platform/es-evaluator/issues/events{/number}","events_url":"https://api.github.com/repos/harvest-platform/es-evaluator/events","assignees_url":"https://api.github.com/repos/harvest-platform/es-evaluator/assignees{/user}","branches_url":"https://api.github.com/repos/harvest-platform/es-evaluator/branches{/branch}","tags_url":"https://api.github.com/repos/harvest-platform/es-evaluator/tags","blobs_url":"https://api.github.com/repos/harvest-platform/es-evaluator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harvest-platform/es-evaluator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harvest-platform/es-evaluator/git/refs{/sha}","trees_url":"https://api.github.com/repos/harvest-platform/es-evaluator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harvest-platform/es-evaluator/statuses/{sha}","languages_url":"https://api.github.com/repos/harvest-platform/es-evaluator/languages","stargazers_url":"https://api.github.com/repos/harvest-platform/es-evaluator/stargazers","contributors_url":"https://api.github.com/repos/harvest-platform/es-evaluator/contributors","subscribers_url":"https://api.github.com/repos/harvest-platform/es-evaluator/subscribers","subscription_url":"https://api.github.com/repos/harvest-platform/es-evaluator/subscription","commits_url":"https://api.github.com/repos/harvest-platform/es-evaluator/commits{/sha}","git_commits_url":"https://api.github.com/repos/harvest-platform/es-evaluator/git/commits{/sha}","comments_url":"https://api.github.com/repos/harvest-platform/es-evaluator/comments{/number}","issue_comment_url":"https://api.github.com/repos/harvest-platform/es-evaluator/issues/comments{/number}","contents_url":"https://api.github.com/repos/harvest-platform/es-evaluator/contents/{+path}","compare_url":"https://api.github.com/repos/harvest-platform/es-evaluator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harvest-platform/es-evaluator/merges","archive_url":"https://api.github.com/repos/harvest-platform/es-evaluator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harvest-platform/es-evaluator/downloads","issues_url":"https://api.github.com/repos/harvest-platform/es-evaluator/issues{/number}","pulls_url":"https://api.github.com/repos/harvest-platform/es-evaluator/pulls{/number}","milestones_url":"https://api.github.com/repos/harvest-platform/es-evaluator/milestones{/number}","notifications_url":"https://api.github.com/repos/harvest-platform/es-evaluator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harvest-platform/es-evaluator/labels{/name}","releases_url":"https://api.github.com/repos/harvest-platform/es-evaluator/releases{/id}","deployments_url":"https://api.github.com/repos/harvest-platform/es-evaluator/deployments","created_at":"2016-09-15T14:03:43Z","updated_at":"2016-09-15T14:06:32Z","pushed_at":"2016-10-17T17:56:10Z","git_url":"git://github.com/harvest-platform/es-evaluator.git","ssh_url":"git@github.com:harvest-platform/es-evaluator.git","clone_url":"https://github.com/harvest-platform/es-evaluator.git","svn_url":"https://github.com/harvest-platform/es-evaluator","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"harvest-platform:master","ref":"master","sha":"d048bc4180dda3c3bbbadbb2fd21c97b4fc6dbad","user":{"login":"harvest-platform","id":19407587,"avatar_url":"https://avatars.githubusercontent.com/u/19407587?v=3","gravatar_id":"","url":"https://api.github.com/users/harvest-platform","html_url":"https://github.com/harvest-platform","followers_url":"https://api.github.com/users/harvest-platform/followers","following_url":"https://api.github.com/users/harvest-platform/following{/other_user}","gists_url":"https://api.github.com/users/harvest-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/harvest-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harvest-platform/subscriptions","organizations_url":"https://api.github.com/users/harvest-platform/orgs","repos_url":"https://api.github.com/users/harvest-platform/repos","events_url":"https://api.github.com/users/harvest-platform/events{/privacy}","received_events_url":"https://api.github.com/users/harvest-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":68299257,"name":"es-evaluator","full_name":"harvest-platform/es-evaluator","owner":{"login":"harvest-platform","id":19407587,"avatar_url":"https://avatars.githubusercontent.com/u/19407587?v=3","gravatar_id":"","url":"https://api.github.com/users/harvest-platform","html_url":"https://github.com/harvest-platform","followers_url":"https://api.github.com/users/harvest-platform/followers","following_url":"https://api.github.com/users/harvest-platform/following{/other_user}","gists_url":"https://api.github.com/users/harvest-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/harvest-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harvest-platform/subscriptions","organizations_url":"https://api.github.com/users/harvest-platform/orgs","repos_url":"https://api.github.com/users/harvest-platform/repos","events_url":"https://api.github.com/users/harvest-platform/events{/privacy}","received_events_url":"https://api.github.com/users/harvest-platform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/harvest-platform/es-evaluator","description":"Query evaluator for Elasticsearch backends","fork":false,"url":"https://api.github.com/repos/harvest-platform/es-evaluator","forks_url":"https://api.github.com/repos/harvest-platform/es-evaluator/forks","keys_url":"https://api.github.com/repos/harvest-platform/es-evaluator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harvest-platform/es-evaluator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harvest-platform/es-evaluator/teams","hooks_url":"https://api.github.com/repos/harvest-platform/es-evaluator/hooks","issue_events_url":"https://api.github.com/repos/harvest-platform/es-evaluator/issues/events{/number}","events_url":"https://api.github.com/repos/harvest-platform/es-evaluator/events","assignees_url":"https://api.github.com/repos/harvest-platform/es-evaluator/assignees{/user}","branches_url":"https://api.github.com/repos/harvest-platform/es-evaluator/branches{/branch}","tags_url":"https://api.github.com/repos/harvest-platform/es-evaluator/tags","blobs_url":"https://api.github.com/repos/harvest-platform/es-evaluator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harvest-platform/es-evaluator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harvest-platform/es-evaluator/git/refs{/sha}","trees_url":"https://api.github.com/repos/harvest-platform/es-evaluator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harvest-platform/es-evaluator/statuses/{sha}","languages_url":"https://api.github.com/repos/harvest-platform/es-evaluator/languages","stargazers_url":"https://api.github.com/repos/harvest-platform/es-evaluator/stargazers","contributors_url":"https://api.github.com/repos/harvest-platform/es-evaluator/contributors","subscribers_url":"https://api.github.com/repos/harvest-platform/es-evaluator/subscribers","subscription_url":"https://api.github.com/repos/harvest-platform/es-evaluator/subscription","commits_url":"https://api.github.com/repos/harvest-platform/es-evaluator/commits{/sha}","git_commits_url":"https://api.github.com/repos/harvest-platform/es-evaluator/git/commits{/sha}","comments_url":"https://api.github.com/repos/harvest-platform/es-evaluator/comments{/number}","issue_comment_url":"https://api.github.com/repos/harvest-platform/es-evaluator/issues/comments{/number}","contents_url":"https://api.github.com/repos/harvest-platform/es-evaluator/contents/{+path}","compare_url":"https://api.github.com/repos/harvest-platform/es-evaluator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harvest-platform/es-evaluator/merges","archive_url":"https://api.github.com/repos/harvest-platform/es-evaluator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harvest-platform/es-evaluator/downloads","issues_url":"https://api.github.com/repos/harvest-platform/es-evaluator/issues{/number}","pulls_url":"https://api.github.com/repos/harvest-platform/es-evaluator/pulls{/number}","milestones_url":"https://api.github.com/repos/harvest-platform/es-evaluator/milestones{/number}","notifications_url":"https://api.github.com/repos/harvest-platform/es-evaluator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harvest-platform/es-evaluator/labels{/name}","releases_url":"https://api.github.com/repos/harvest-platform/es-evaluator/releases{/id}","deployments_url":"https://api.github.com/repos/harvest-platform/es-evaluator/deployments","created_at":"2016-09-15T14:03:43Z","updated_at":"2016-09-15T14:06:32Z","pushed_at":"2016-10-17T17:56:10Z","git_url":"git://github.com/harvest-platform/es-evaluator.git","ssh_url":"git@github.com:harvest-platform/es-evaluator.git","clone_url":"https://github.com/harvest-platform/es-evaluator.git","svn_url":"https://github.com/harvest-platform/es-evaluator","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/harvest-platform/es-evaluator/pulls/2"},"html":{"href":"https://github.com/harvest-platform/es-evaluator/pull/2"},"issue":{"href":"https://api.github.com/repos/harvest-platform/es-evaluator/issues/2"},"comments":{"href":"https://api.github.com/repos/harvest-platform/es-evaluator/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/harvest-platform/es-evaluator/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/harvest-platform/es-evaluator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/harvest-platform/es-evaluator/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/harvest-platform/es-evaluator/statuses/d7d9d9d9704183addc31294eb22704154aa8eec4"}}}}
{"actor":{"display_login":"bruth"}}