Skip to content

feat: bad examples demo#2

Open
Andre-3rd-Viking wants to merge 1 commit intomasterfrom
feat/bad-examples
Open

feat: bad examples demo#2
Andre-3rd-Viking wants to merge 1 commit intomasterfrom
feat/bad-examples

Conversation

@Andre-3rd-Viking
Copy link
Contributor

Anti-patterns demo

  • This PR is ready to be reviewed with the help of Coding guidelines helper extension!

Repository owner deleted a comment from Andre-3rd-Viking Dec 28, 2024
Repository owner deleted a comment from Andre-3rd-Viking Dec 28, 2024
@@ -0,0 +1,20 @@
// This code uses multiple comparisons in a single if statement
export const antiPatternExample_01 = (value: string) => {
if (value === 'a' || value === 'b' || value === 'c') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants