{"action":"created","comment":{"url":"https://api.github.com/repos/allegro/akubra/pulls/comments/86160422","pull_request_review_id":6831552,"id":86160422,"diff_hunk":"@@ -102,21 +120,16 @@ func Configure() (conf Config, err error) {\n \t\tconf = Config{YamlConfig: yconf}\n \t}\n \n-\tconf.BackendURLs = make([]*url.URL, 0, len(conf.Backends))\n-\tfor _, rawstr := range conf.Backends {\n-\t\turl, perr := url.Parse(rawstr)\n-\t\tif perr != nil {\n-\t\t\treturn conf, perr\n-\t\t}\n-\t\tconf.BackendURLs = append(conf.BackendURLs, url)\n-\t}\n-\n-\tif len(conf.MaintainedBackend) > 0 {\n-\t\tu, perr := url.Parse(conf.MaintainedBackend)\n-\t\tif perr != nil {\n-\t\t\treturn conf, perr\n+\tconfFile, openErr := os.Open(*confFilePath)\n+\tif openErr == nil {","path":"config/config.go","position":91,"original_position":91,"commit_id":"462aaf85a54598a7f714192f375e73d77e809278","original_commit_id":"462aaf85a54598a7f714192f375e73d77e809278","user":{"login":"medzin","id":763199,"avatar_url":"https://avatars.githubusercontent.com/u/763199?v=3","gravatar_id":"","url":"https://api.github.com/users/medzin","html_url":"https://github.com/medzin","followers_url":"https://api.github.com/users/medzin/followers","following_url":"https://api.github.com/users/medzin/following{/other_user}","gists_url":"https://api.github.com/users/medzin/gists{/gist_id}","starred_url":"https://api.github.com/users/medzin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medzin/subscriptions","organizations_url":"https://api.github.com/users/medzin/orgs","repos_url":"https://api.github.com/users/medzin/repos","events_url":"https://api.github.com/users/medzin/events{/privacy}","received_events_url":"https://api.github.com/users/medzin/received_events","type":"User","site_admin":false},"body":"Invert `if` statement to reduce nesting.","created_at":"2016-11-02T14:57:02Z","updated_at":"2016-11-02T14:57:02Z","html_url":"https://github.com/allegro/akubra/pull/1#discussion_r86160422","pull_request_url":"https://api.github.com/repos/allegro/akubra/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/allegro/akubra/pulls/comments/86160422"},"html":{"href":"https://github.com/allegro/akubra/pull/1#discussion_r86160422"},"pull_request":{"href":"https://api.github.com/repos/allegro/akubra/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/allegro/akubra/pulls/1","id":91973055,"html_url":"https://github.com/allegro/akubra/pull/1","diff_url":"https://github.com/allegro/akubra/pull/1.diff","patch_url":"https://github.com/allegro/akubra/pull/1.patch","issue_url":"https://api.github.com/repos/allegro/akubra/issues/1","number":1,"state":"open","locked":false,"title":"Configuration parse fix","user":{"login":"mjarco","id":535518,"avatar_url":"https://avatars.githubusercontent.com/u/535518?v=3","gravatar_id":"","url":"https://api.github.com/users/mjarco","html_url":"https://github.com/mjarco","followers_url":"https://api.github.com/users/mjarco/followers","following_url":"https://api.github.com/users/mjarco/following{/other_user}","gists_url":"https://api.github.com/users/mjarco/gists{/gist_id}","starred_url":"https://api.github.com/users/mjarco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjarco/subscriptions","organizations_url":"https://api.github.com/users/mjarco/orgs","repos_url":"https://api.github.com/users/mjarco/repos","events_url":"https://api.github.com/users/mjarco/events{/privacy}","received_events_url":"https://api.github.com/users/mjarco/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-02T13:51:31Z","updated_at":"2016-11-02T14:57:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6323b45fd87370b73c51c05fb7f5bc8969f18de9","assignee":{"login":"wendigo","id":66972,"avatar_url":"https://avatars.githubusercontent.com/u/66972?v=3","gravatar_id":"","url":"https://api.github.com/users/wendigo","html_url":"https://github.com/wendigo","followers_url":"https://api.github.com/users/wendigo/followers","following_url":"https://api.github.com/users/wendigo/following{/other_user}","gists_url":"https://api.github.com/users/wendigo/gists{/gist_id}","starred_url":"https://api.github.com/users/wendigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wendigo/subscriptions","organizations_url":"https://api.github.com/users/wendigo/orgs","repos_url":"https://api.github.com/users/wendigo/repos","events_url":"https://api.github.com/users/wendigo/events{/privacy}","received_events_url":"https://api.github.com/users/wendigo/received_events","type":"User","site_admin":false},"assignees":[{"login":"wendigo","id":66972,"avatar_url":"https://avatars.githubusercontent.com/u/66972?v=3","gravatar_id":"","url":"https://api.github.com/users/wendigo","html_url":"https://github.com/wendigo","followers_url":"https://api.github.com/users/wendigo/followers","following_url":"https://api.github.com/users/wendigo/following{/other_user}","gists_url":"https://api.github.com/users/wendigo/gists{/gist_id}","starred_url":"https://api.github.com/users/wendigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wendigo/subscriptions","organizations_url":"https://api.github.com/users/wendigo/orgs","repos_url":"https://api.github.com/users/wendigo/repos","events_url":"https://api.github.com/users/wendigo/events{/privacy}","received_events_url":"https://api.github.com/users/wendigo/received_events","type":"User","site_admin":false},{"login":"mjarco","id":535518,"avatar_url":"https://avatars.githubusercontent.com/u/535518?v=3","gravatar_id":"","url":"https://api.github.com/users/mjarco","html_url":"https://github.com/mjarco","followers_url":"https://api.github.com/users/mjarco/followers","following_url":"https://api.github.com/users/mjarco/following{/other_user}","gists_url":"https://api.github.com/users/mjarco/gists{/gist_id}","starred_url":"https://api.github.com/users/mjarco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjarco/subscriptions","organizations_url":"https://api.github.com/users/mjarco/orgs","repos_url":"https://api.github.com/users/mjarco/repos","events_url":"https://api.github.com/users/mjarco/events{/privacy}","received_events_url":"https://api.github.com/users/mjarco/received_events","type":"User","site_admin":false},{"login":"vi4m","id":552398,"avatar_url":"https://avatars.githubusercontent.com/u/552398?v=3","gravatar_id":"","url":"https://api.github.com/users/vi4m","html_url":"https://github.com/vi4m","followers_url":"https://api.github.com/users/vi4m/followers","following_url":"https://api.github.com/users/vi4m/following{/other_user}","gists_url":"https://api.github.com/users/vi4m/gists{/gist_id}","starred_url":"https://api.github.com/users/vi4m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vi4m/subscriptions","organizations_url":"https://api.github.com/users/vi4m/orgs","repos_url":"https://api.github.com/users/vi4m/repos","events_url":"https://api.github.com/users/vi4m/events{/privacy}","received_events_url":"https://api.github.com/users/vi4m/received_events","type":"User","site_admin":false},{"login":"medzin","id":763199,"avatar_url":"https://avatars.githubusercontent.com/u/763199?v=3","gravatar_id":"","url":"https://api.github.com/users/medzin","html_url":"https://github.com/medzin","followers_url":"https://api.github.com/users/medzin/followers","following_url":"https://api.github.com/users/medzin/following{/other_user}","gists_url":"https://api.github.com/users/medzin/gists{/gist_id}","starred_url":"https://api.github.com/users/medzin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medzin/subscriptions","organizations_url":"https://api.github.com/users/medzin/orgs","repos_url":"https://api.github.com/users/medzin/repos","events_url":"https://api.github.com/users/medzin/events{/privacy}","received_events_url":"https://api.github.com/users/medzin/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/allegro/akubra/pulls/1/commits","review_comments_url":"https://api.github.com/repos/allegro/akubra/pulls/1/comments","review_comment_url":"https://api.github.com/repos/allegro/akubra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/allegro/akubra/issues/1/comments","statuses_url":"https://api.github.com/repos/allegro/akubra/statuses/462aaf85a54598a7f714192f375e73d77e809278","head":{"label":"mjarco:configuration-parse-fix","ref":"configuration-parse-fix","sha":"462aaf85a54598a7f714192f375e73d77e809278","user":{"login":"mjarco","id":535518,"avatar_url":"https://avatars.githubusercontent.com/u/535518?v=3","gravatar_id":"","url":"https://api.github.com/users/mjarco","html_url":"https://github.com/mjarco","followers_url":"https://api.github.com/users/mjarco/followers","following_url":"https://api.github.com/users/mjarco/following{/other_user}","gists_url":"https://api.github.com/users/mjarco/gists{/gist_id}","starred_url":"https://api.github.com/users/mjarco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjarco/subscriptions","organizations_url":"https://api.github.com/users/mjarco/orgs","repos_url":"https://api.github.com/users/mjarco/repos","events_url":"https://api.github.com/users/mjarco/events{/privacy}","received_events_url":"https://api.github.com/users/mjarco/received_events","type":"User","site_admin":false},"repo":{"id":72194247,"name":"akubra","full_name":"mjarco/akubra","owner":{"login":"mjarco","id":535518,"avatar_url":"https://avatars.githubusercontent.com/u/535518?v=3","gravatar_id":"","url":"https://api.github.com/users/mjarco","html_url":"https://github.com/mjarco","followers_url":"https://api.github.com/users/mjarco/followers","following_url":"https://api.github.com/users/mjarco/following{/other_user}","gists_url":"https://api.github.com/users/mjarco/gists{/gist_id}","starred_url":"https://api.github.com/users/mjarco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjarco/subscriptions","organizations_url":"https://api.github.com/users/mjarco/orgs","repos_url":"https://api.github.com/users/mjarco/repos","events_url":"https://api.github.com/users/mjarco/events{/privacy}","received_events_url":"https://api.github.com/users/mjarco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mjarco/akubra","description":null,"fork":true,"url":"https://api.github.com/repos/mjarco/akubra","forks_url":"https://api.github.com/repos/mjarco/akubra/forks","keys_url":"https://api.github.com/repos/mjarco/akubra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mjarco/akubra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mjarco/akubra/teams","hooks_url":"https://api.github.com/repos/mjarco/akubra/hooks","issue_events_url":"https://api.github.com/repos/mjarco/akubra/issues/events{/number}","events_url":"https://api.github.com/repos/mjarco/akubra/events","assignees_url":"https://api.github.com/repos/mjarco/akubra/assignees{/user}","branches_url":"https://api.github.com/repos/mjarco/akubra/branches{/branch}","tags_url":"https://api.github.com/repos/mjarco/akubra/tags","blobs_url":"https://api.github.com/repos/mjarco/akubra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mjarco/akubra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mjarco/akubra/git/refs{/sha}","trees_url":"https://api.github.com/repos/mjarco/akubra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mjarco/akubra/statuses/{sha}","languages_url":"https://api.github.com/repos/mjarco/akubra/languages","stargazers_url":"https://api.github.com/repos/mjarco/akubra/stargazers","contributors_url":"https://api.github.com/repos/mjarco/akubra/contributors","subscribers_url":"https://api.github.com/repos/mjarco/akubra/subscribers","subscription_url":"https://api.github.com/repos/mjarco/akubra/subscription","commits_url":"https://api.github.com/repos/mjarco/akubra/commits{/sha}","git_commits_url":"https://api.github.com/repos/mjarco/akubra/git/commits{/sha}","comments_url":"https://api.github.com/repos/mjarco/akubra/comments{/number}","issue_comment_url":"https://api.github.com/repos/mjarco/akubra/issues/comments{/number}","contents_url":"https://api.github.com/repos/mjarco/akubra/contents/{+path}","compare_url":"https://api.github.com/repos/mjarco/akubra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mjarco/akubra/merges","archive_url":"https://api.github.com/repos/mjarco/akubra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mjarco/akubra/downloads","issues_url":"https://api.github.com/repos/mjarco/akubra/issues{/number}","pulls_url":"https://api.github.com/repos/mjarco/akubra/pulls{/number}","milestones_url":"https://api.github.com/repos/mjarco/akubra/milestones{/number}","notifications_url":"https://api.github.com/repos/mjarco/akubra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mjarco/akubra/labels{/name}","releases_url":"https://api.github.com/repos/mjarco/akubra/releases{/id}","deployments_url":"https://api.github.com/repos/mjarco/akubra/deployments","created_at":"2016-10-28T09:32:51Z","updated_at":"2016-10-28T09:32:52Z","pushed_at":"2016-11-02T13:48:48Z","git_url":"git://github.com/mjarco/akubra.git","ssh_url":"git@github.com:mjarco/akubra.git","clone_url":"https://github.com/mjarco/akubra.git","svn_url":"https://github.com/mjarco/akubra","homepage":null,"size":23,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"allegro:master","ref":"master","sha":"bc2027037a52a0864ecfaf07b2286d3a8779e792","user":{"login":"allegro","id":562236,"avatar_url":"https://avatars.githubusercontent.com/u/562236?v=3","gravatar_id":"","url":"https://api.github.com/users/allegro","html_url":"https://github.com/allegro","followers_url":"https://api.github.com/users/allegro/followers","following_url":"https://api.github.com/users/allegro/following{/other_user}","gists_url":"https://api.github.com/users/allegro/gists{/gist_id}","starred_url":"https://api.github.com/users/allegro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allegro/subscriptions","organizations_url":"https://api.github.com/users/allegro/orgs","repos_url":"https://api.github.com/users/allegro/repos","events_url":"https://api.github.com/users/allegro/events{/privacy}","received_events_url":"https://api.github.com/users/allegro/received_events","type":"Organization","site_admin":false},"repo":{"id":71782347,"name":"akubra","full_name":"allegro/akubra","owner":{"login":"allegro","id":562236,"avatar_url":"https://avatars.githubusercontent.com/u/562236?v=3","gravatar_id":"","url":"https://api.github.com/users/allegro","html_url":"https://github.com/allegro","followers_url":"https://api.github.com/users/allegro/followers","following_url":"https://api.github.com/users/allegro/following{/other_user}","gists_url":"https://api.github.com/users/allegro/gists{/gist_id}","starred_url":"https://api.github.com/users/allegro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allegro/subscriptions","organizations_url":"https://api.github.com/users/allegro/orgs","repos_url":"https://api.github.com/users/allegro/repos","events_url":"https://api.github.com/users/allegro/events{/privacy}","received_events_url":"https://api.github.com/users/allegro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/allegro/akubra","description":null,"fork":false,"url":"https://api.github.com/repos/allegro/akubra","forks_url":"https://api.github.com/repos/allegro/akubra/forks","keys_url":"https://api.github.com/repos/allegro/akubra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/allegro/akubra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/allegro/akubra/teams","hooks_url":"https://api.github.com/repos/allegro/akubra/hooks","issue_events_url":"https://api.github.com/repos/allegro/akubra/issues/events{/number}","events_url":"https://api.github.com/repos/allegro/akubra/events","assignees_url":"https://api.github.com/repos/allegro/akubra/assignees{/user}","branches_url":"https://api.github.com/repos/allegro/akubra/branches{/branch}","tags_url":"https://api.github.com/repos/allegro/akubra/tags","blobs_url":"https://api.github.com/repos/allegro/akubra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/allegro/akubra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/allegro/akubra/git/refs{/sha}","trees_url":"https://api.github.com/repos/allegro/akubra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/allegro/akubra/statuses/{sha}","languages_url":"https://api.github.com/repos/allegro/akubra/languages","stargazers_url":"https://api.github.com/repos/allegro/akubra/stargazers","contributors_url":"https://api.github.com/repos/allegro/akubra/contributors","subscribers_url":"https://api.github.com/repos/allegro/akubra/subscribers","subscription_url":"https://api.github.com/repos/allegro/akubra/subscription","commits_url":"https://api.github.com/repos/allegro/akubra/commits{/sha}","git_commits_url":"https://api.github.com/repos/allegro/akubra/git/commits{/sha}","comments_url":"https://api.github.com/repos/allegro/akubra/comments{/number}","issue_comment_url":"https://api.github.com/repos/allegro/akubra/issues/comments{/number}","contents_url":"https://api.github.com/repos/allegro/akubra/contents/{+path}","compare_url":"https://api.github.com/repos/allegro/akubra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/allegro/akubra/merges","archive_url":"https://api.github.com/repos/allegro/akubra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/allegro/akubra/downloads","issues_url":"https://api.github.com/repos/allegro/akubra/issues{/number}","pulls_url":"https://api.github.com/repos/allegro/akubra/pulls{/number}","milestones_url":"https://api.github.com/repos/allegro/akubra/milestones{/number}","notifications_url":"https://api.github.com/repos/allegro/akubra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/allegro/akubra/labels{/name}","releases_url":"https://api.github.com/repos/allegro/akubra/releases{/id}","deployments_url":"https://api.github.com/repos/allegro/akubra/deployments","created_at":"2016-10-24T11:32:11Z","updated_at":"2016-10-28T21:08:59Z","pushed_at":"2016-11-02T13:51:31Z","git_url":"git://github.com/allegro/akubra.git","ssh_url":"git@github.com:allegro/akubra.git","clone_url":"https://github.com/allegro/akubra.git","svn_url":"https://github.com/allegro/akubra","homepage":null,"size":22,"stargazers_count":6,"watchers_count":6,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/allegro/akubra/pulls/1"},"html":{"href":"https://github.com/allegro/akubra/pull/1"},"issue":{"href":"https://api.github.com/repos/allegro/akubra/issues/1"},"comments":{"href":"https://api.github.com/repos/allegro/akubra/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/allegro/akubra/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/allegro/akubra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/allegro/akubra/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/allegro/akubra/statuses/462aaf85a54598a7f714192f375e73d77e809278"}}}}
{"actor":{"display_login":"medzin"}}