{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/react/issues/3006","labels_url":"https://api.github.com/repos/facebook/react/issues/3006/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/3006/comments","events_url":"https://api.github.com/repos/facebook/react/issues/3006/events","html_url":"https://github.com/facebook/react/issues/3006","id":56163354,"number":3006,"title":"Unnecessary return","user":{"login":"hnordt","id":1625399,"avatar_url":"https://avatars.githubusercontent.com/u/1625399?v=3","gravatar_id":"","url":"https://api.github.com/users/hnordt","html_url":"https://github.com/hnordt","followers_url":"https://api.github.com/users/hnordt/followers","following_url":"https://api.github.com/users/hnordt/following{/other_user}","gists_url":"https://api.github.com/users/hnordt/gists{/gist_id}","starred_url":"https://api.github.com/users/hnordt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hnordt/subscriptions","organizations_url":"https://api.github.com/users/hnordt/orgs","repos_url":"https://api.github.com/users/hnordt/repos","events_url":"https://api.github.com/users/hnordt/events{/privacy}","received_events_url":"https://api.github.com/users/hnordt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react/labels/Component:%20Documentation%20&%20Website","name":"Component: Documentation & Website","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-01T13:23:19Z","updated_at":"2015-02-03T18:51:33Z","closed_at":"2015-02-03T18:51:33Z","body":"Hello.\r\n\r\nReading the React Tutorial (http://facebook.github.io/react/docs/tutorial.html#adding-new-comments) we have:\r\n\r\n```javascript\r\nvar CommentForm = React.createClass({\r\n  handleSubmit: function(e) {\r\n    e.preventDefault();\r\n    var author = this.refs.author.getDOMNode().value.trim();\r\n    var text = this.refs.text.getDOMNode().value.trim();\r\n    if (!text || !author) {\r\n      return;\r\n    }\r\n    // TODO: send request to the server\r\n    this.refs.author.getDOMNode().value = '';\r\n    this.refs.text.getDOMNode().value = '';\r\n    return;\r\n  },\r\n```\r\n\r\nThe last `return;` is really necessary? If yes, why is it necessary?"}}