Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Remove code smell assertion identified by Sonar #12547

Merged
merged 5 commits into from
May 21, 2024

Conversation

EdGeraghty
Copy link
Contributor

@EdGeraghty EdGeraghty commented May 17, 2024

This assertion is unnecessary since the receiver accepts the original…

(picked up by SonarCloud)

Signed-off-by: Ed Geraghty ed@geraghty.family

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • Sign-off given on the changes (see CONTRIBUTING.md).

@EdGeraghty EdGeraghty requested a review from a team as a code owner May 17, 2024 18:17
@EdGeraghty EdGeraghty requested review from dbkr and robintown May 17, 2024 18:17
@github-actions github-actions bot added the Z-Community-PR Issue is solved by a community member's PR label May 17, 2024
@EdGeraghty EdGeraghty changed the title Remove code smell assrertion identified by Sonar Remove code smell assertion identified by Sonar May 17, 2024
@EdGeraghty
Copy link
Contributor Author

🤣 Playwright doesn't like that.

src/SlidingSyncManager.ts Outdated Show resolved Hide resolved
Copy link
Contributor Author

@EdGeraghty EdGeraghty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Derp.

@EdGeraghty
Copy link
Contributor Author

Thanks for your help, @dbkr

@EdGeraghty EdGeraghty requested a review from dbkr May 21, 2024 11:50
Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good otherwise though, thanks for updating it!

src/SlidingSyncManager.ts Outdated Show resolved Hide resolved
@EdGeraghty EdGeraghty requested a review from dbkr May 21, 2024 12:17
@dbkr dbkr added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label May 21, 2024
@dbkr dbkr added this pull request to the merge queue May 21, 2024
Merged via the queue into matrix-org:develop with commit f712b80 May 21, 2024
31 of 32 checks passed
@EdGeraghty EdGeraghty deleted the EdGeraghty/ss-code-smell branch May 21, 2024 18:00
thoraj added a commit to verji/matrix-react-sdk that referenced this pull request Aug 15, 2024
* Upgrade dependency to matrix-js-sdk@32.3.0-rc.0

* v3.100.0-rc.0

* Upgrade dependency to matrix-js-sdk@32.3.0

* Remove code smell assertion identified by Sonar (matrix-org#12547)

* This assertion is unnecessary since the receiver accepts the original type of the expression

* Implement `client.getDomain()` null check

* Update comment since `AutoDiscovery.findClientConfig` may still throw

* Report verification and recovery state to posthog (matrix-org#12516)

* Report verification and recovery state to posthog

* Fix CryptoApi import

* Fix js-sdk import

* Review: Use DeviceVerificationStatus instead of CrossSigningStatus

* Review: Clean condition to check secrets in 4S

* review: Fix redundent !!

* Deprecate `Tooltip.tsx`

* Use tooltip compound in `MessageComposer.tsx`

* Use tooltip compound in `ReadReceiptGroup` component

* Use tooltip compound in `ReadReceiptPerson` component

* Delete `useTooltip.tsx`

* Use compound tooltip in `ReactionRowButton`

* Upgrade dependency to matrix-js-sdk@32.4.0

* Migrate `TooltipTarget` usage to compound `Tooltip` (matrix-org#12542)

* Use new tooltip in `RoomTopic.tsx`

* Use new tooltip in `MLocationBody.tsx`

* Fix room topic

* Update location snapshot

* Use new tooltip in `AppPermission.tsx`

* Remove `TooltipTarget`

* Add tests for `RoomTopic`

* Add tests for `ReadReceiptGroup.tsx`

* Add more tests for `ReadReceiptGroup.tsx`

* Add more test for `ReactionsRowButton.tsx`

* Add seedrandom dep to `resolutions` (matrix-org#12552)

* Move seedrandom dep to `resolutions`

... to shut renovate up

* Reinstate `seedrandom` as dev dependency

If we just declare it in `resolutions`, it doesn't get installed at all,
because it is only a devDependency of `bloom-filters`.

* [create-pull-request] automated change (matrix-org#12554)

Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>

* Avoid using deprecated exports, fields, and duplicate code (matrix-org#12555)

* Fix tabbedview breakpoint width (matrix-org#12556)

Which should be 1024 according to the designs, not 768

* Tooltip: close field tooltip when ESC is pressed (matrix-org#12553)

* Close field tooltip when ESC is pressed

* Use `Key.ESCAPE`

* Close the release announcement when a dialog is opened (matrix-org#12559)

* Fire `ModalManagerEvent.Closed` when a dialog is closed

* Listen to modal events in the RA

* Fix first RA test

* Upgrade dependency to matrix-js-sdk@33.0.0-rc.0

* v3.100.0-rc.1

* Upgrade dependency to matrix-js-sdk@33.0.0

* v3.100.0

---------

Co-authored-by: RiotRobot <releases@riot.im>
Co-authored-by: Ed Geraghty <edg@privacyinternational.org>
Co-authored-by: Valere <valeref@matrix.org>
Co-authored-by: Florian Duros <florian.duros@ormaz.fr>
Co-authored-by: Florian Duros <florianduros@element.io>
Co-authored-by: David Baker <dbkr@users.noreply.github.com>
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks Z-Community-PR Issue is solved by a community member's PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants