frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Refactoring across the repo

Open SpotlightForBugs opened this issue 2 years ago • 4 comments
trafficstars

Description

used Deepsource Autofix

Type of change

Refactored two things:

  • refactor: convert logical operator to optional chaining

The optional chaining operator can be used to perform null checks before accessing a property, or calling a function.

  • refactor: remove unnecessary boolean casts

In contexts such as an if statement's test where the result of the expression will already be coerced to a Boolean, casting to a Boolean via double negation (!!) or a Boolean call is unnecessary.

My Bootstrap Academy username: SFB

SpotlightForBugs avatar Oct 08 '23 16:10 SpotlightForBugs

@Defelo was denkst du? (Kein Bock immer Konflikte zu beheben)


@Defelo what do you think? (I don’t feel like always resolving conflicts)

SpotlightForBugs avatar Oct 10 '23 17:10 SpotlightForBugs

Preview deployed to https://e3a11daa.academy-preview.pages.dev (total size: 11M)

github-actions[bot] avatar Oct 12 '23 18:10 github-actions[bot]

Hi @SpotlightForBugs, are you still working on this?

Defelo avatar Oct 30 '23 10:10 Defelo

@Defelo yes, I am

SpotlightForBugs avatar Oct 30 '23 12:10 SpotlightForBugs