{"action":"created","comment":{"url":"https://api.github.com/repos/Jguer/yay/pulls/comments/206483023","pull_request_review_id":141901842,"id":206483023,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNjQ4MzAyMw==","diff_hunk":"@@ -373,35 +367,33 @@ func handlePrint() (err error) {\n \tdefault:\n \t\terr = nil\n \t}\n-\n \treturn err\n }\n \n-func handleYay() (err error) {\n+func handleYay() error {\n \t//_, options, targets := cmdArgs.formatArgs()\n \tif cmdArgs.existsArg(\"gendb\") {\n-\t\terr = createDevelDB()\n-\t} else if cmdArgs.existsDouble(\"c\") {\n-\t\terr = cleanDependencies(true)\n-\t} else if cmdArgs.existsArg(\"c\", \"clean\") {\n-\t\terr = cleanDependencies(false)\n-\t} else if len(cmdArgs.targets) > 0 {\n-\t\terr = handleYogurt()\n+\t\treturn createDevelDB()\n \t}\n-\n-\treturn\n+\tif cmdArgs.existsDouble(\"c\") {\n+\t\treturn cleanDependencies(true)\n+\t}\n+\tif cmdArgs.existsArg(\"c\", \"clean\") {\n+\t\treturn cleanDependencies(false)\n+\t}\n+\tif len(cmdArgs.targets) > 0 {\n+\t\treturn handleYogurt()\n+\t}\n+\treturn nil\n }\n \n-func handleGetpkgbuild() (err error) {\n-\terr = getPkgbuilds(cmdArgs.targets)\n-\treturn\n+func handleGetpkgbuild() error {\n+\treturn getPkgbuilds(cmdArgs.targets)\n }\n \n-func handleYogurt() (err error) {\n+func handleYogurt() error {\n \tconfig.SearchMode = NumberMenu\n-\terr = numberMenu(cmdArgs.targets)\n-\n-\treturn\n+\treturn numberMenu(cmdArgs.targets)\n }\n \n func handleSync() (err error) {","path":"cmd.go","position":99,"original_position":99,"commit_id":"29f3e011eca4063635d4182a609f5e3b404a4e7d","original_commit_id":"29f3e011eca4063635d4182a609f5e3b404a4e7d","user":{"login":"xyproto","id":52813,"node_id":"MDQ6VXNlcjUyODEz","avatar_url":"https://avatars2.githubusercontent.com/u/52813?v=4","gravatar_id":"","url":"https://api.github.com/users/xyproto","html_url":"https://github.com/xyproto","followers_url":"https://api.github.com/users/xyproto/followers","following_url":"https://api.github.com/users/xyproto/following{/other_user}","gists_url":"https://api.github.com/users/xyproto/gists{/gist_id}","starred_url":"https://api.github.com/users/xyproto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xyproto/subscriptions","organizations_url":"https://api.github.com/users/xyproto/orgs","repos_url":"https://api.github.com/users/xyproto/repos","events_url":"https://api.github.com/users/xyproto/events{/privacy}","received_events_url":"https://api.github.com/users/xyproto/received_events","type":"User","site_admin":false},"body":"Agree, I can update the pull request.","created_at":"2018-07-31T11:01:05Z","updated_at":"2018-07-31T11:01:05Z","html_url":"https://github.com/Jguer/yay/pull/601#discussion_r206483023","pull_request_url":"https://api.github.com/repos/Jguer/yay/pulls/601","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Jguer/yay/pulls/comments/206483023"},"html":{"href":"https://github.com/Jguer/yay/pull/601#discussion_r206483023"},"pull_request":{"href":"https://api.github.com/repos/Jguer/yay/pulls/601"}},"in_reply_to_id":206480143},"pull_request":{"url":"https://api.github.com/repos/Jguer/yay/pulls/601","id":205047255,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1MDQ3MjU1","html_url":"https://github.com/Jguer/yay/pull/601","diff_url":"https://github.com/Jguer/yay/pull/601.diff","patch_url":"https://github.com/Jguer/yay/pull/601.patch","issue_url":"https://api.github.com/repos/Jguer/yay/issues/601","number":601,"state":"open","locked":false,"title":"Only minor changes","user":{"login":"xyproto","id":52813,"node_id":"MDQ6VXNlcjUyODEz","avatar_url":"https://avatars2.githubusercontent.com/u/52813?v=4","gravatar_id":"","url":"https://api.github.com/users/xyproto","html_url":"https://github.com/xyproto","followers_url":"https://api.github.com/users/xyproto/followers","following_url":"https://api.github.com/users/xyproto/following{/other_user}","gists_url":"https://api.github.com/users/xyproto/gists{/gist_id}","starred_url":"https://api.github.com/users/xyproto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xyproto/subscriptions","organizations_url":"https://api.github.com/users/xyproto/orgs","repos_url":"https://api.github.com/users/xyproto/repos","events_url":"https://api.github.com/users/xyproto/events{/privacy}","received_events_url":"https://api.github.com/users/xyproto/received_events","type":"User","site_admin":false},"body":"* 50 fewer lines\r\n* introducing the `must` function and `defer` in `main.go`\r\n* favoring the \"early return\" style, which allows for reduction of indentation levels\r\n* avoiding named returns in a couple of places (but there is not much of a difference for these particular cases)\r\n\r\nAccept or reject at will.\r\n\r\nThanks for creating yay!","created_at":"2018-07-31T09:19:43Z","updated_at":"2018-07-31T11:01:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"768009bb2189e5a883ad1b5cfed23c933abed7d2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Jguer/yay/pulls/601/commits","review_comments_url":"https://api.github.com/repos/Jguer/yay/pulls/601/comments","review_comment_url":"https://api.github.com/repos/Jguer/yay/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Jguer/yay/issues/601/comments","statuses_url":"https://api.github.com/repos/Jguer/yay/statuses/29f3e011eca4063635d4182a609f5e3b404a4e7d","head":{"label":"xyproto:minor","ref":"minor","sha":"29f3e011eca4063635d4182a609f5e3b404a4e7d","user":{"login":"xyproto","id":52813,"node_id":"MDQ6VXNlcjUyODEz","avatar_url":"https://avatars2.githubusercontent.com/u/52813?v=4","gravatar_id":"","url":"https://api.github.com/users/xyproto","html_url":"https://github.com/xyproto","followers_url":"https://api.github.com/users/xyproto/followers","following_url":"https://api.github.com/users/xyproto/following{/other_user}","gists_url":"https://api.github.com/users/xyproto/gists{/gist_id}","starred_url":"https://api.github.com/users/xyproto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xyproto/subscriptions","organizations_url":"https://api.github.com/users/xyproto/orgs","repos_url":"https://api.github.com/users/xyproto/repos","events_url":"https://api.github.com/users/xyproto/events{/privacy}","received_events_url":"https://api.github.com/users/xyproto/received_events","type":"User","site_admin":false},"repo":{"id":142978859,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI5Nzg4NTk=","name":"yay","full_name":"xyproto/yay","owner":{"login":"xyproto","id":52813,"node_id":"MDQ6VXNlcjUyODEz","avatar_url":"https://avatars2.githubusercontent.com/u/52813?v=4","gravatar_id":"","url":"https://api.github.com/users/xyproto","html_url":"https://github.com/xyproto","followers_url":"https://api.github.com/users/xyproto/followers","following_url":"https://api.github.com/users/xyproto/following{/other_user}","gists_url":"https://api.github.com/users/xyproto/gists{/gist_id}","starred_url":"https://api.github.com/users/xyproto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xyproto/subscriptions","organizations_url":"https://api.github.com/users/xyproto/orgs","repos_url":"https://api.github.com/users/xyproto/repos","events_url":"https://api.github.com/users/xyproto/events{/privacy}","received_events_url":"https://api.github.com/users/xyproto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xyproto/yay","description":"Yet another Yogurt - An AUR Helper written in Go","fork":true,"url":"https://api.github.com/repos/xyproto/yay","forks_url":"https://api.github.com/repos/xyproto/yay/forks","keys_url":"https://api.github.com/repos/xyproto/yay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xyproto/yay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xyproto/yay/teams","hooks_url":"https://api.github.com/repos/xyproto/yay/hooks","issue_events_url":"https://api.github.com/repos/xyproto/yay/issues/events{/number}","events_url":"https://api.github.com/repos/xyproto/yay/events","assignees_url":"https://api.github.com/repos/xyproto/yay/assignees{/user}","branches_url":"https://api.github.com/repos/xyproto/yay/branches{/branch}","tags_url":"https://api.github.com/repos/xyproto/yay/tags","blobs_url":"https://api.github.com/repos/xyproto/yay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xyproto/yay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xyproto/yay/git/refs{/sha}","trees_url":"https://api.github.com/repos/xyproto/yay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xyproto/yay/statuses/{sha}","languages_url":"https://api.github.com/repos/xyproto/yay/languages","stargazers_url":"https://api.github.com/repos/xyproto/yay/stargazers","contributors_url":"https://api.github.com/repos/xyproto/yay/contributors","subscribers_url":"https://api.github.com/repos/xyproto/yay/subscribers","subscription_url":"https://api.github.com/repos/xyproto/yay/subscription","commits_url":"https://api.github.com/repos/xyproto/yay/commits{/sha}","git_commits_url":"https://api.github.com/repos/xyproto/yay/git/commits{/sha}","comments_url":"https://api.github.com/repos/xyproto/yay/comments{/number}","issue_comment_url":"https://api.github.com/repos/xyproto/yay/issues/comments{/number}","contents_url":"https://api.github.com/repos/xyproto/yay/contents/{+path}","compare_url":"https://api.github.com/repos/xyproto/yay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xyproto/yay/merges","archive_url":"https://api.github.com/repos/xyproto/yay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xyproto/yay/downloads","issues_url":"https://api.github.com/repos/xyproto/yay/issues{/number}","pulls_url":"https://api.github.com/repos/xyproto/yay/pulls{/number}","milestones_url":"https://api.github.com/repos/xyproto/yay/milestones{/number}","notifications_url":"https://api.github.com/repos/xyproto/yay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xyproto/yay/labels{/name}","releases_url":"https://api.github.com/repos/xyproto/yay/releases{/id}","deployments_url":"https://api.github.com/repos/xyproto/yay/deployments","created_at":"2018-07-31T07:32:10Z","updated_at":"2018-07-31T07:32:12Z","pushed_at":"2018-07-31T09:16:08Z","git_url":"git://github.com/xyproto/yay.git","ssh_url":"git@github.com:xyproto/yay.git","clone_url":"https://github.com/xyproto/yay.git","svn_url":"https://github.com/xyproto/yay","homepage":null,"size":4385,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Jguer:master","ref":"master","sha":"892d9cc752d8394a868b82d734bb8d4b7963a428","user":{"login":"Jguer","id":8071073,"node_id":"MDQ6VXNlcjgwNzEwNzM=","avatar_url":"https://avatars1.githubusercontent.com/u/8071073?v=4","gravatar_id":"","url":"https://api.github.com/users/Jguer","html_url":"https://github.com/Jguer","followers_url":"https://api.github.com/users/Jguer/followers","following_url":"https://api.github.com/users/Jguer/following{/other_user}","gists_url":"https://api.github.com/users/Jguer/gists{/gist_id}","starred_url":"https://api.github.com/users/Jguer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jguer/subscriptions","organizations_url":"https://api.github.com/users/Jguer/orgs","repos_url":"https://api.github.com/users/Jguer/repos","events_url":"https://api.github.com/users/Jguer/events{/privacy}","received_events_url":"https://api.github.com/users/Jguer/received_events","type":"User","site_admin":false},"repo":{"id":67382094,"node_id":"MDEwOlJlcG9zaXRvcnk2NzM4MjA5NA==","name":"yay","full_name":"Jguer/yay","owner":{"login":"Jguer","id":8071073,"node_id":"MDQ6VXNlcjgwNzEwNzM=","avatar_url":"https://avatars1.githubusercontent.com/u/8071073?v=4","gravatar_id":"","url":"https://api.github.com/users/Jguer","html_url":"https://github.com/Jguer","followers_url":"https://api.github.com/users/Jguer/followers","following_url":"https://api.github.com/users/Jguer/following{/other_user}","gists_url":"https://api.github.com/users/Jguer/gists{/gist_id}","starred_url":"https://api.github.com/users/Jguer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jguer/subscriptions","organizations_url":"https://api.github.com/users/Jguer/orgs","repos_url":"https://api.github.com/users/Jguer/repos","events_url":"https://api.github.com/users/Jguer/events{/privacy}","received_events_url":"https://api.github.com/users/Jguer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Jguer/yay","description":"Yet another Yogurt - An AUR Helper written in Go","fork":false,"url":"https://api.github.com/repos/Jguer/yay","forks_url":"https://api.github.com/repos/Jguer/yay/forks","keys_url":"https://api.github.com/repos/Jguer/yay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jguer/yay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jguer/yay/teams","hooks_url":"https://api.github.com/repos/Jguer/yay/hooks","issue_events_url":"https://api.github.com/repos/Jguer/yay/issues/events{/number}","events_url":"https://api.github.com/repos/Jguer/yay/events","assignees_url":"https://api.github.com/repos/Jguer/yay/assignees{/user}","branches_url":"https://api.github.com/repos/Jguer/yay/branches{/branch}","tags_url":"https://api.github.com/repos/Jguer/yay/tags","blobs_url":"https://api.github.com/repos/Jguer/yay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jguer/yay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jguer/yay/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jguer/yay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jguer/yay/statuses/{sha}","languages_url":"https://api.github.com/repos/Jguer/yay/languages","stargazers_url":"https://api.github.com/repos/Jguer/yay/stargazers","contributors_url":"https://api.github.com/repos/Jguer/yay/contributors","subscribers_url":"https://api.github.com/repos/Jguer/yay/subscribers","subscription_url":"https://api.github.com/repos/Jguer/yay/subscription","commits_url":"https://api.github.com/repos/Jguer/yay/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jguer/yay/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jguer/yay/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jguer/yay/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jguer/yay/contents/{+path}","compare_url":"https://api.github.com/repos/Jguer/yay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jguer/yay/merges","archive_url":"https://api.github.com/repos/Jguer/yay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jguer/yay/downloads","issues_url":"https://api.github.com/repos/Jguer/yay/issues{/number}","pulls_url":"https://api.github.com/repos/Jguer/yay/pulls{/number}","milestones_url":"https://api.github.com/repos/Jguer/yay/milestones{/number}","notifications_url":"https://api.github.com/repos/Jguer/yay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jguer/yay/labels{/name}","releases_url":"https://api.github.com/repos/Jguer/yay/releases{/id}","deployments_url":"https://api.github.com/repos/Jguer/yay/deployments","created_at":"2016-09-05T02:41:34Z","updated_at":"2018-07-31T07:10:09Z","pushed_at":"2018-07-31T09:19:44Z","git_url":"git://github.com/Jguer/yay.git","ssh_url":"git@github.com:Jguer/yay.git","clone_url":"https://github.com/Jguer/yay.git","svn_url":"https://github.com/Jguer/yay","homepage":null,"size":4374,"stargazers_count":997,"watchers_count":997,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":59,"mirror_url":null,"archived":false,"open_issues_count":27,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":59,"open_issues":27,"watchers":997,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Jguer/yay/pulls/601"},"html":{"href":"https://github.com/Jguer/yay/pull/601"},"issue":{"href":"https://api.github.com/repos/Jguer/yay/issues/601"},"comments":{"href":"https://api.github.com/repos/Jguer/yay/issues/601/comments"},"review_comments":{"href":"https://api.github.com/repos/Jguer/yay/pulls/601/comments"},"review_comment":{"href":"https://api.github.com/repos/Jguer/yay/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Jguer/yay/pulls/601/commits"},"statuses":{"href":"https://api.github.com/repos/Jguer/yay/statuses/29f3e011eca4063635d4182a609f5e3b404a4e7d"}},"author_association":"NONE"}}
{"actor":{"display_login":"xyproto"}}