Make SonarCloud happier about our code quality (#10630)

This commit is contained in:
Michael Telatynski 2023-04-17 13:57:19 +01:00 committed by GitHub
parent 9c277d6b02
commit 568ec77208
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 6 deletions

View file

@ -103,7 +103,7 @@ export default class LegacyCallEventGrouper extends EventEmitter {
public get isVoice(): boolean | undefined {
const invite = this.invite;
if (!invite) return;
if (!invite) return undefined;
// FIXME: Find a better way to determine this from the event?
if (invite.getContent()?.offer?.sdp?.indexOf("m=video") !== -1) return false;

View file

@ -1228,6 +1228,8 @@ export default class InviteDialog extends React.PureComponent<Props, IInviteDial
switch (this.props.kind) {
case InviteKind.Dm:
return "StartChat";
default:
return undefined;
}
}

View file

@ -158,7 +158,7 @@ interface MapProps {
children?: (renderProps: { map: maplibregl.Map }) => ReactNode;
}
const Map: React.FC<MapProps> = ({
const MapComponent: React.FC<MapProps> = ({
bounds,
centerGeoUri,
children,
@ -188,4 +188,4 @@ const Map: React.FC<MapProps> = ({
);
};
export default Map;
export default MapComponent;