]> source.dussan.org Git - sonarqube.git/commitdiff
Update method to comply with new coding standard
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Thu, 20 Dec 2018 08:52:47 +0000 (09:52 +0100)
committerSonarTech <sonartech@sonarsource.com>
Mon, 24 Dec 2018 19:20:54 +0000 (20:20 +0100)
server/sonar-web/src/main/js/app/components/extensions/OrganizationPageExtension.tsx

index a372d0f1f48c9d4a1dd0ce7deaf990f4f887a14b..ac53b37e04188664800a031019aaf627f7c834c4 100644 (file)
@@ -44,8 +44,9 @@ interface OwnProps {
 type Props = OwnProps & StateToProps & DispatchProps;
 
 class OrganizationPageExtension extends React.PureComponent<Props> {
-  refreshOrganization = () =>
-    this.props.organization && this.props.fetchOrganization(this.props.organization.key);
+  refreshOrganization = () => {
+    return this.props.organization && this.props.fetchOrganization(this.props.organization.key);
+  };
 
   render() {
     const { extensionKey, pluginKey } = this.props.params;