fix bugs found by sonarqube

This commit is contained in:
Sebastian Sdorra
2019-10-11 14:56:11 +02:00
parent 439f1d229d
commit b10d7ddfd7
2 changed files with 2 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ export default class CardColumn extends React.Component<Props> {
</p> </p>
<p className="shorten-text">{description}</p> <p className="shorten-text">{description}</p>
</ContentLeft> </ContentLeft>
<ContentRight>{contentRight && contentRight}</ContentRight> <ContentRight>{contentRight}</ContentRight>
</div> </div>
<FooterWrapper className={classNames("level", "is-flex")}> <FooterWrapper className={classNames("level", "is-flex")}>
<div className="level-left is-hidden-mobile">{footerLeft}</div> <div className="level-left is-hidden-mobile">{footerLeft}</div>

View File

@@ -185,7 +185,7 @@ class Sources extends React.Component<Props, State> {
defaultBranch={ defaultBranch={
branches && branches.filter(b => b.defaultBranch === true)[0] branches && branches.filter(b => b.defaultBranch === true)[0]
} }
branches={branches && branches} branches={branches}
repository={repository} repository={repository}
/> />
); );