-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unused import and useless conditional expression #6971
Conversation
|
Welcome @xiaoyang-sde! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, I'd prefer to update the no-unused-vars
linter rule to automatically throw errors when unused imports or variables are found.
I found that the |
Ye, I am not sure why it is disabled. Below config should be sufficient: You can remove the generic |
Signed-off-by: Xiaoyang Liu <[email protected]>
Signed-off-by: Xiaoyang Liu <[email protected]>
Signed-off-by: Xiaoyang Liu <[email protected]>
Thanks. I enabled it in the latest commit! |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maciaszczykm, xiaoyang-sde The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Remove unused import:
MatMenu
insrc/app/frontend/chrome/userpanel/component.ts
MatDialogRef
insrc/app/frontend/common/dialogs/config/dialog.ts
SecurityContext
andDomSanitizer
insrc/app/frontend/common/pipes/stripansi.ts
StringMap
insrc/app/frontend/resource/cluster/persistentvolume/detail/component.ts
Remove useless conditional expression:
route
insrc/app/frontend/common/components/breadcrumbs/component.ts