{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/fxa-geodb/pulls/comments/75191544","id":75191544,"diff_hunk":"@@ -95,7 +95,9 @@ var MaxmindDbDownloader = function () {\n               }, function (err) {\n                 // download resulted in an error, do not rename\n                 // remove temp file\n-                fs.unlinkSync(targetFilePathTemp);\n+                if (fs.existsSync(targetFilePathTemp)) {","path":"lib/maxmind-db-downloader.js","position":5,"original_position":5,"commit_id":"ad3bcc2d00f9aa0f717452e8ed79c81345344bf3","original_commit_id":"ad3bcc2d00f9aa0f717452e8ed79c81345344bf3","user":{"login":"vladikoff","id":128755,"avatar_url":"https://avatars.githubusercontent.com/u/128755?v=3","gravatar_id":"","url":"https://api.github.com/users/vladikoff","html_url":"https://github.com/vladikoff","followers_url":"https://api.github.com/users/vladikoff/followers","following_url":"https://api.github.com/users/vladikoff/following{/other_user}","gists_url":"https://api.github.com/users/vladikoff/gists{/gist_id}","starred_url":"https://api.github.com/users/vladikoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladikoff/subscriptions","organizations_url":"https://api.github.com/users/vladikoff/orgs","repos_url":"https://api.github.com/users/vladikoff/repos","events_url":"https://api.github.com/users/vladikoff/events{/privacy}","received_events_url":"https://api.github.com/users/vladikoff/received_events","type":"User","site_admin":false},"body":"Let's wait to see what happens in node land. I'm guessing this will be a larger problem with node 8","created_at":"2016-08-17T19:40:01Z","updated_at":"2016-08-17T19:40:01Z","html_url":"https://github.com/mozilla/fxa-geodb/pull/26#discussion_r75191544","pull_request_url":"https://api.github.com/repos/mozilla/fxa-geodb/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/mozilla/fxa-geodb/pulls/comments/75191544"},"html":{"href":"https://github.com/mozilla/fxa-geodb/pull/26#discussion_r75191544"},"pull_request":{"href":"https://api.github.com/repos/mozilla/fxa-geodb/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/fxa-geodb/pulls/26","id":81690426,"html_url":"https://github.com/mozilla/fxa-geodb/pull/26","diff_url":"https://github.com/mozilla/fxa-geodb/pull/26.diff","patch_url":"https://github.com/mozilla/fxa-geodb/pull/26.patch","issue_url":"https://api.github.com/repos/mozilla/fxa-geodb/issues/26","number":26,"state":"open","locked":false,"title":"fix(downloader): only delete temp file if it exists","user":{"login":"vladikoff","id":128755,"avatar_url":"https://avatars.githubusercontent.com/u/128755?v=3","gravatar_id":"","url":"https://api.github.com/users/vladikoff","html_url":"https://github.com/vladikoff","followers_url":"https://api.github.com/users/vladikoff/followers","following_url":"https://api.github.com/users/vladikoff/following{/other_user}","gists_url":"https://api.github.com/users/vladikoff/gists{/gist_id}","starred_url":"https://api.github.com/users/vladikoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladikoff/subscriptions","organizations_url":"https://api.github.com/users/vladikoff/orgs","repos_url":"https://api.github.com/users/vladikoff/repos","events_url":"https://api.github.com/users/vladikoff/events{/privacy}","received_events_url":"https://api.github.com/users/vladikoff/received_events","type":"User","site_admin":false},"body":"Fixes #5","created_at":"2016-08-17T18:15:09Z","updated_at":"2016-08-17T19:40:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f559d21317a9982dc473463278efbb256268863a","assignee":{"login":"vbudhram","id":1295288,"avatar_url":"https://avatars.githubusercontent.com/u/1295288?v=3","gravatar_id":"","url":"https://api.github.com/users/vbudhram","html_url":"https://github.com/vbudhram","followers_url":"https://api.github.com/users/vbudhram/followers","following_url":"https://api.github.com/users/vbudhram/following{/other_user}","gists_url":"https://api.github.com/users/vbudhram/gists{/gist_id}","starred_url":"https://api.github.com/users/vbudhram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbudhram/subscriptions","organizations_url":"https://api.github.com/users/vbudhram/orgs","repos_url":"https://api.github.com/users/vbudhram/repos","events_url":"https://api.github.com/users/vbudhram/events{/privacy}","received_events_url":"https://api.github.com/users/vbudhram/received_events","type":"User","site_admin":false},"assignees":[{"login":"vbudhram","id":1295288,"avatar_url":"https://avatars.githubusercontent.com/u/1295288?v=3","gravatar_id":"","url":"https://api.github.com/users/vbudhram","html_url":"https://github.com/vbudhram","followers_url":"https://api.github.com/users/vbudhram/followers","following_url":"https://api.github.com/users/vbudhram/following{/other_user}","gists_url":"https://api.github.com/users/vbudhram/gists{/gist_id}","starred_url":"https://api.github.com/users/vbudhram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbudhram/subscriptions","organizations_url":"https://api.github.com/users/vbudhram/orgs","repos_url":"https://api.github.com/users/vbudhram/repos","events_url":"https://api.github.com/users/vbudhram/events{/privacy}","received_events_url":"https://api.github.com/users/vbudhram/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/fxa-geodb/pulls/26/commits","review_comments_url":"https://api.github.com/repos/mozilla/fxa-geodb/pulls/26/comments","review_comment_url":"https://api.github.com/repos/mozilla/fxa-geodb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/fxa-geodb/issues/26/comments","statuses_url":"https://api.github.com/repos/mozilla/fxa-geodb/statuses/ad3bcc2d00f9aa0f717452e8ed79c81345344bf3","head":{"label":"mozilla:i5","ref":"i5","sha":"ad3bcc2d00f9aa0f717452e8ed79c81345344bf3","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":62077508,"name":"fxa-geodb","full_name":"mozilla/fxa-geodb","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/fxa-geodb","description":"Firefox Accounts IP geolocation library","fork":false,"url":"https://api.github.com/repos/mozilla/fxa-geodb","forks_url":"https://api.github.com/repos/mozilla/fxa-geodb/forks","keys_url":"https://api.github.com/repos/mozilla/fxa-geodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/fxa-geodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/fxa-geodb/teams","hooks_url":"https://api.github.com/repos/mozilla/fxa-geodb/hooks","issue_events_url":"https://api.github.com/repos/mozilla/fxa-geodb/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/fxa-geodb/events","assignees_url":"https://api.github.com/repos/mozilla/fxa-geodb/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/fxa-geodb/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/fxa-geodb/tags","blobs_url":"https://api.github.com/repos/mozilla/fxa-geodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/fxa-geodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/fxa-geodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/fxa-geodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/fxa-geodb/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/fxa-geodb/languages","stargazers_url":"https://api.github.com/repos/mozilla/fxa-geodb/stargazers","contributors_url":"https://api.github.com/repos/mozilla/fxa-geodb/contributors","subscribers_url":"https://api.github.com/repos/mozilla/fxa-geodb/subscribers","subscription_url":"https://api.github.com/repos/mozilla/fxa-geodb/subscription","commits_url":"https://api.github.com/repos/mozilla/fxa-geodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/fxa-geodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/fxa-geodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/fxa-geodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/fxa-geodb/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/fxa-geodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/fxa-geodb/merges","archive_url":"https://api.github.com/repos/mozilla/fxa-geodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/fxa-geodb/downloads","issues_url":"https://api.github.com/repos/mozilla/fxa-geodb/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/fxa-geodb/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/fxa-geodb/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/fxa-geodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/fxa-geodb/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/fxa-geodb/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/fxa-geodb/deployments","created_at":"2016-06-27T18:13:27Z","updated_at":"2016-07-21T14:03:41Z","pushed_at":"2016-08-17T18:15:09Z","git_url":"git://github.com/mozilla/fxa-geodb.git","ssh_url":"git@github.com:mozilla/fxa-geodb.git","clone_url":"https://github.com/mozilla/fxa-geodb.git","svn_url":"https://github.com/mozilla/fxa-geodb","homepage":null,"size":187,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"d4cba32b3c347e13d1af42f2f61a9483c1bb8281","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":62077508,"name":"fxa-geodb","full_name":"mozilla/fxa-geodb","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/fxa-geodb","description":"Firefox Accounts IP geolocation library","fork":false,"url":"https://api.github.com/repos/mozilla/fxa-geodb","forks_url":"https://api.github.com/repos/mozilla/fxa-geodb/forks","keys_url":"https://api.github.com/repos/mozilla/fxa-geodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/fxa-geodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/fxa-geodb/teams","hooks_url":"https://api.github.com/repos/mozilla/fxa-geodb/hooks","issue_events_url":"https://api.github.com/repos/mozilla/fxa-geodb/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/fxa-geodb/events","assignees_url":"https://api.github.com/repos/mozilla/fxa-geodb/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/fxa-geodb/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/fxa-geodb/tags","blobs_url":"https://api.github.com/repos/mozilla/fxa-geodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/fxa-geodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/fxa-geodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/fxa-geodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/fxa-geodb/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/fxa-geodb/languages","stargazers_url":"https://api.github.com/repos/mozilla/fxa-geodb/stargazers","contributors_url":"https://api.github.com/repos/mozilla/fxa-geodb/contributors","subscribers_url":"https://api.github.com/repos/mozilla/fxa-geodb/subscribers","subscription_url":"https://api.github.com/repos/mozilla/fxa-geodb/subscription","commits_url":"https://api.github.com/repos/mozilla/fxa-geodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/fxa-geodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/fxa-geodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/fxa-geodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/fxa-geodb/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/fxa-geodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/fxa-geodb/merges","archive_url":"https://api.github.com/repos/mozilla/fxa-geodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/fxa-geodb/downloads","issues_url":"https://api.github.com/repos/mozilla/fxa-geodb/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/fxa-geodb/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/fxa-geodb/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/fxa-geodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/fxa-geodb/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/fxa-geodb/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/fxa-geodb/deployments","created_at":"2016-06-27T18:13:27Z","updated_at":"2016-07-21T14:03:41Z","pushed_at":"2016-08-17T18:15:09Z","git_url":"git://github.com/mozilla/fxa-geodb.git","ssh_url":"git@github.com:mozilla/fxa-geodb.git","clone_url":"https://github.com/mozilla/fxa-geodb.git","svn_url":"https://github.com/mozilla/fxa-geodb","homepage":null,"size":187,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/fxa-geodb/pulls/26"},"html":{"href":"https://github.com/mozilla/fxa-geodb/pull/26"},"issue":{"href":"https://api.github.com/repos/mozilla/fxa-geodb/issues/26"},"comments":{"href":"https://api.github.com/repos/mozilla/fxa-geodb/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/fxa-geodb/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/fxa-geodb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/fxa-geodb/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/fxa-geodb/statuses/ad3bcc2d00f9aa0f717452e8ed79c81345344bf3"}}}}
{"actor":{"display_login":"vladikoff"}}