Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Mar 28, 2020
1 parent 12f3047 commit a774ca1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/docusaurus/src/client/exports/BrowserOnly.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import React from 'react';
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';

function BrowserOnly({children}) {
return ExecutionEnvironment.canUseDOM && children != null && <>{children()}</>;
};
return (
ExecutionEnvironment.canUseDOM && children != null && <>{children()}</>
);
}

export default BrowserOnly;

0 comments on commit a774ca1

Please sign in to comment.