{"action":"created","comment":{"url":"https://api.github.com/repos/syncthing/discosrv/pulls/comments/64142142","id":64142142,"diff_hunk":"@@ -28,15 +28,15 @@ func postgresSetup(db *sql.DB) error {\n \t}\n \n \trow := db.QueryRow(`SELECT 'DevicesDeviceIDIndex'::regclass`)\n-\tif err := row.Scan(nil); err != nil {","path":"psql.go","position":4,"original_position":4,"commit_id":"4354b77bba5d90692aaa9dc4120ce57ae0c74258","original_commit_id":"4354b77bba5d90692aaa9dc4120ce57ae0c74258","user":{"login":"calmh","id":125426,"avatar_url":"https://avatars.githubusercontent.com/u/125426?v=3","gravatar_id":"","url":"https://api.github.com/users/calmh","html_url":"https://github.com/calmh","followers_url":"https://api.github.com/users/calmh/followers","following_url":"https://api.github.com/users/calmh/following{/other_user}","gists_url":"https://api.github.com/users/calmh/gists{/gist_id}","starred_url":"https://api.github.com/users/calmh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calmh/subscriptions","organizations_url":"https://api.github.com/users/calmh/orgs","repos_url":"https://api.github.com/users/calmh/repos","events_url":"https://api.github.com/users/calmh/events{/privacy}","received_events_url":"https://api.github.com/users/calmh/received_events","type":"User","site_admin":false},"body":"This is a style issue. I prefer it with := as the statement is now independent of the surrounding code.","created_at":"2016-05-22T00:09:37Z","updated_at":"2016-05-22T00:09:37Z","html_url":"https://github.com/syncthing/discosrv/pull/45#discussion_r64142142","pull_request_url":"https://api.github.com/repos/syncthing/discosrv/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/syncthing/discosrv/pulls/comments/64142142"},"html":{"href":"https://github.com/syncthing/discosrv/pull/45#discussion_r64142142"},"pull_request":{"href":"https://api.github.com/repos/syncthing/discosrv/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/syncthing/discosrv/pulls/45","id":70958938,"html_url":"https://github.com/syncthing/discosrv/pull/45","diff_url":"https://github.com/syncthing/discosrv/pull/45.diff","patch_url":"https://github.com/syncthing/discosrv/pull/45.patch","issue_url":"https://api.github.com/repos/syncthing/discosrv/issues/45","number":45,"state":"open","locked":false,"title":"Fix linters warning","user":{"login":"artemnikitin","id":2201424,"avatar_url":"https://avatars.githubusercontent.com/u/2201424?v=3","gravatar_id":"","url":"https://api.github.com/users/artemnikitin","html_url":"https://github.com/artemnikitin","followers_url":"https://api.github.com/users/artemnikitin/followers","following_url":"https://api.github.com/users/artemnikitin/following{/other_user}","gists_url":"https://api.github.com/users/artemnikitin/gists{/gist_id}","starred_url":"https://api.github.com/users/artemnikitin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artemnikitin/subscriptions","organizations_url":"https://api.github.com/users/artemnikitin/orgs","repos_url":"https://api.github.com/users/artemnikitin/repos","events_url":"https://api.github.com/users/artemnikitin/events{/privacy}","received_events_url":"https://api.github.com/users/artemnikitin/received_events","type":"User","site_admin":false},"body":"1) Fix for unused variable. Variable `err` was already declared on line 17\r\n2) Return and pass structure with mutex not by value\r\n\r\nCurrently where is no issues https://goreportcard.com/report/github.com/artemnikitin/discosrv","created_at":"2016-05-21T20:02:42Z","updated_at":"2016-05-22T00:09:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"05c5f19d1d128f44d22fa9916507e84f75025413","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/syncthing/discosrv/pulls/45/commits","review_comments_url":"https://api.github.com/repos/syncthing/discosrv/pulls/45/comments","review_comment_url":"https://api.github.com/repos/syncthing/discosrv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/syncthing/discosrv/issues/45/comments","statuses_url":"https://api.github.com/repos/syncthing/discosrv/statuses/4354b77bba5d90692aaa9dc4120ce57ae0c74258","head":{"label":"artemnikitin:master","ref":"master","sha":"4354b77bba5d90692aaa9dc4120ce57ae0c74258","user":{"login":"artemnikitin","id":2201424,"avatar_url":"https://avatars.githubusercontent.com/u/2201424?v=3","gravatar_id":"","url":"https://api.github.com/users/artemnikitin","html_url":"https://github.com/artemnikitin","followers_url":"https://api.github.com/users/artemnikitin/followers","following_url":"https://api.github.com/users/artemnikitin/following{/other_user}","gists_url":"https://api.github.com/users/artemnikitin/gists{/gist_id}","starred_url":"https://api.github.com/users/artemnikitin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artemnikitin/subscriptions","organizations_url":"https://api.github.com/users/artemnikitin/orgs","repos_url":"https://api.github.com/users/artemnikitin/repos","events_url":"https://api.github.com/users/artemnikitin/events{/privacy}","received_events_url":"https://api.github.com/users/artemnikitin/received_events","type":"User","site_admin":false},"repo":{"id":59378669,"name":"discosrv","full_name":"artemnikitin/discosrv","owner":{"login":"artemnikitin","id":2201424,"avatar_url":"https://avatars.githubusercontent.com/u/2201424?v=3","gravatar_id":"","url":"https://api.github.com/users/artemnikitin","html_url":"https://github.com/artemnikitin","followers_url":"https://api.github.com/users/artemnikitin/followers","following_url":"https://api.github.com/users/artemnikitin/following{/other_user}","gists_url":"https://api.github.com/users/artemnikitin/gists{/gist_id}","starred_url":"https://api.github.com/users/artemnikitin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artemnikitin/subscriptions","organizations_url":"https://api.github.com/users/artemnikitin/orgs","repos_url":"https://api.github.com/users/artemnikitin/repos","events_url":"https://api.github.com/users/artemnikitin/events{/privacy}","received_events_url":"https://api.github.com/users/artemnikitin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/artemnikitin/discosrv","description":"The Syncthing global discovery server","fork":true,"url":"https://api.github.com/repos/artemnikitin/discosrv","forks_url":"https://api.github.com/repos/artemnikitin/discosrv/forks","keys_url":"https://api.github.com/repos/artemnikitin/discosrv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artemnikitin/discosrv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artemnikitin/discosrv/teams","hooks_url":"https://api.github.com/repos/artemnikitin/discosrv/hooks","issue_events_url":"https://api.github.com/repos/artemnikitin/discosrv/issues/events{/number}","events_url":"https://api.github.com/repos/artemnikitin/discosrv/events","assignees_url":"https://api.github.com/repos/artemnikitin/discosrv/assignees{/user}","branches_url":"https://api.github.com/repos/artemnikitin/discosrv/branches{/branch}","tags_url":"https://api.github.com/repos/artemnikitin/discosrv/tags","blobs_url":"https://api.github.com/repos/artemnikitin/discosrv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artemnikitin/discosrv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artemnikitin/discosrv/git/refs{/sha}","trees_url":"https://api.github.com/repos/artemnikitin/discosrv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artemnikitin/discosrv/statuses/{sha}","languages_url":"https://api.github.com/repos/artemnikitin/discosrv/languages","stargazers_url":"https://api.github.com/repos/artemnikitin/discosrv/stargazers","contributors_url":"https://api.github.com/repos/artemnikitin/discosrv/contributors","subscribers_url":"https://api.github.com/repos/artemnikitin/discosrv/subscribers","subscription_url":"https://api.github.com/repos/artemnikitin/discosrv/subscription","commits_url":"https://api.github.com/repos/artemnikitin/discosrv/commits{/sha}","git_commits_url":"https://api.github.com/repos/artemnikitin/discosrv/git/commits{/sha}","comments_url":"https://api.github.com/repos/artemnikitin/discosrv/comments{/number}","issue_comment_url":"https://api.github.com/repos/artemnikitin/discosrv/issues/comments{/number}","contents_url":"https://api.github.com/repos/artemnikitin/discosrv/contents/{+path}","compare_url":"https://api.github.com/repos/artemnikitin/discosrv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artemnikitin/discosrv/merges","archive_url":"https://api.github.com/repos/artemnikitin/discosrv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artemnikitin/discosrv/downloads","issues_url":"https://api.github.com/repos/artemnikitin/discosrv/issues{/number}","pulls_url":"https://api.github.com/repos/artemnikitin/discosrv/pulls{/number}","milestones_url":"https://api.github.com/repos/artemnikitin/discosrv/milestones{/number}","notifications_url":"https://api.github.com/repos/artemnikitin/discosrv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artemnikitin/discosrv/labels{/name}","releases_url":"https://api.github.com/repos/artemnikitin/discosrv/releases{/id}","deployments_url":"https://api.github.com/repos/artemnikitin/discosrv/deployments","created_at":"2016-05-21T19:47:44Z","updated_at":"2016-05-21T19:47:45Z","pushed_at":"2016-05-21T20:11:14Z","git_url":"git://github.com/artemnikitin/discosrv.git","ssh_url":"git@github.com:artemnikitin/discosrv.git","clone_url":"https://github.com/artemnikitin/discosrv.git","svn_url":"https://github.com/artemnikitin/discosrv","homepage":"http://syncthing.net/","size":2576,"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":"syncthing:master","ref":"master","sha":"1a2ac62dd59a350a2efd5dd742454a3dcf98dbc7","user":{"login":"syncthing","id":7628018,"avatar_url":"https://avatars.githubusercontent.com/u/7628018?v=3","gravatar_id":"","url":"https://api.github.com/users/syncthing","html_url":"https://github.com/syncthing","followers_url":"https://api.github.com/users/syncthing/followers","following_url":"https://api.github.com/users/syncthing/following{/other_user}","gists_url":"https://api.github.com/users/syncthing/gists{/gist_id}","starred_url":"https://api.github.com/users/syncthing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syncthing/subscriptions","organizations_url":"https://api.github.com/users/syncthing/orgs","repos_url":"https://api.github.com/users/syncthing/repos","events_url":"https://api.github.com/users/syncthing/events{/privacy}","received_events_url":"https://api.github.com/users/syncthing/received_events","type":"Organization","site_admin":false},"repo":{"id":22442868,"name":"discosrv","full_name":"syncthing/discosrv","owner":{"login":"syncthing","id":7628018,"avatar_url":"https://avatars.githubusercontent.com/u/7628018?v=3","gravatar_id":"","url":"https://api.github.com/users/syncthing","html_url":"https://github.com/syncthing","followers_url":"https://api.github.com/users/syncthing/followers","following_url":"https://api.github.com/users/syncthing/following{/other_user}","gists_url":"https://api.github.com/users/syncthing/gists{/gist_id}","starred_url":"https://api.github.com/users/syncthing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syncthing/subscriptions","organizations_url":"https://api.github.com/users/syncthing/orgs","repos_url":"https://api.github.com/users/syncthing/repos","events_url":"https://api.github.com/users/syncthing/events{/privacy}","received_events_url":"https://api.github.com/users/syncthing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/syncthing/discosrv","description":"The Syncthing global discovery server","fork":false,"url":"https://api.github.com/repos/syncthing/discosrv","forks_url":"https://api.github.com/repos/syncthing/discosrv/forks","keys_url":"https://api.github.com/repos/syncthing/discosrv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/syncthing/discosrv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/syncthing/discosrv/teams","hooks_url":"https://api.github.com/repos/syncthing/discosrv/hooks","issue_events_url":"https://api.github.com/repos/syncthing/discosrv/issues/events{/number}","events_url":"https://api.github.com/repos/syncthing/discosrv/events","assignees_url":"https://api.github.com/repos/syncthing/discosrv/assignees{/user}","branches_url":"https://api.github.com/repos/syncthing/discosrv/branches{/branch}","tags_url":"https://api.github.com/repos/syncthing/discosrv/tags","blobs_url":"https://api.github.com/repos/syncthing/discosrv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/syncthing/discosrv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/syncthing/discosrv/git/refs{/sha}","trees_url":"https://api.github.com/repos/syncthing/discosrv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/syncthing/discosrv/statuses/{sha}","languages_url":"https://api.github.com/repos/syncthing/discosrv/languages","stargazers_url":"https://api.github.com/repos/syncthing/discosrv/stargazers","contributors_url":"https://api.github.com/repos/syncthing/discosrv/contributors","subscribers_url":"https://api.github.com/repos/syncthing/discosrv/subscribers","subscription_url":"https://api.github.com/repos/syncthing/discosrv/subscription","commits_url":"https://api.github.com/repos/syncthing/discosrv/commits{/sha}","git_commits_url":"https://api.github.com/repos/syncthing/discosrv/git/commits{/sha}","comments_url":"https://api.github.com/repos/syncthing/discosrv/comments{/number}","issue_comment_url":"https://api.github.com/repos/syncthing/discosrv/issues/comments{/number}","contents_url":"https://api.github.com/repos/syncthing/discosrv/contents/{+path}","compare_url":"https://api.github.com/repos/syncthing/discosrv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/syncthing/discosrv/merges","archive_url":"https://api.github.com/repos/syncthing/discosrv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/syncthing/discosrv/downloads","issues_url":"https://api.github.com/repos/syncthing/discosrv/issues{/number}","pulls_url":"https://api.github.com/repos/syncthing/discosrv/pulls{/number}","milestones_url":"https://api.github.com/repos/syncthing/discosrv/milestones{/number}","notifications_url":"https://api.github.com/repos/syncthing/discosrv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/syncthing/discosrv/labels{/name}","releases_url":"https://api.github.com/repos/syncthing/discosrv/releases{/id}","deployments_url":"https://api.github.com/repos/syncthing/discosrv/deployments","created_at":"2014-07-30T20:10:38Z","updated_at":"2016-05-17T22:11:16Z","pushed_at":"2016-05-21T20:11:18Z","git_url":"git://github.com/syncthing/discosrv.git","ssh_url":"git@github.com:syncthing/discosrv.git","clone_url":"https://github.com/syncthing/discosrv.git","svn_url":"https://github.com/syncthing/discosrv","homepage":"http://syncthing.net/","size":2593,"stargazers_count":101,"watchers_count":101,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":12,"forks":22,"open_issues":12,"watchers":101,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/syncthing/discosrv/pulls/45"},"html":{"href":"https://github.com/syncthing/discosrv/pull/45"},"issue":{"href":"https://api.github.com/repos/syncthing/discosrv/issues/45"},"comments":{"href":"https://api.github.com/repos/syncthing/discosrv/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/syncthing/discosrv/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/syncthing/discosrv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/syncthing/discosrv/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/syncthing/discosrv/statuses/4354b77bba5d90692aaa9dc4120ce57ae0c74258"}}}}
{"actor":{"display_login":"calmh"}}