OWASP / OWASP/Nest

Removing `undefined` type or `?` specifier.

Open
#4,833 7 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Python
Stars
451
Forks
707
Avg merge
22h 59m
Merged PRs (30d)
91

Description

## Description
SonarCloud reports a violation of rule `typescript:S4782`. Optional property declarations should not use both `?` and `undefined`.

## Sonar Issue
https://sonarcloud.io/project/issues?open=AZ5vYOWvEtPFZsxg7_Xu&id=OWASP_Nest

## Affected Code
```bash
excludedUsernames?: Array | string | null | undefined;
```

## Note
In many file same SonarCloud violation `Consider removing 'undefined' type or '?' specifier, one of them is redundant.`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.