{"action":"opened","issue":{"url":"https://api.github.com/repos/awslabs/lambda-streams-to-firehose/issues/9","repository_url":"https://api.github.com/repos/awslabs/lambda-streams-to-firehose","labels_url":"https://api.github.com/repos/awslabs/lambda-streams-to-firehose/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/lambda-streams-to-firehose/issues/9/comments","events_url":"https://api.github.com/repos/awslabs/lambda-streams-to-firehose/issues/9/events","html_url":"https://github.com/awslabs/lambda-streams-to-firehose/issues/9","id":154291613,"number":9,"title":"`finish` arguments constructed erroneously with `undefined` value","user":{"login":"jamesthompson","id":1836197,"avatar_url":"https://avatars.githubusercontent.com/u/1836197?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesthompson","html_url":"https://github.com/jamesthompson","followers_url":"https://api.github.com/users/jamesthompson/followers","following_url":"https://api.github.com/users/jamesthompson/following{/other_user}","gists_url":"https://api.github.com/users/jamesthompson/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesthompson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesthompson/subscriptions","organizations_url":"https://api.github.com/users/jamesthompson/orgs","repos_url":"https://api.github.com/users/jamesthompson/repos","events_url":"https://api.github.com/users/jamesthompson/events{/privacy}","received_events_url":"https://api.github.com/users/jamesthompson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-11T16:53:28Z","updated_at":"2016-05-11T16:53:28Z","closed_at":null,"body":"In the following code snippet:\r\nhttps://github.com/awslabs/lambda-streams-to-firehose/blob/master/index.js#L472-L479\r\n\r\nA map key is being deleted:\r\nhttps://github.com/awslabs/lambda-streams-to-firehose/blob/master/index.js#L475\r\n\r\nThen the key fetch will result in undefined?\r\nhttps://github.com/awslabs/lambda-streams-to-firehose/blob/master/index.js#L477\r\n\r\nShould the underlying value should be assigned to a variable for comparison prior to `delete` being called on the key?"}}