Skip to content
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

fix: remove un-needed check #2144

Merged
merged 1 commit into from
Aug 26, 2022
Merged

fix: remove un-needed check #2144

merged 1 commit into from
Aug 26, 2022

Conversation

alexeRadu
Copy link
Contributor

Description

Removing an "if" that is is checking a condition previously tested by the assert().

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Not really tested. Only started the plugin.

Configuration:

  • Neovim version (nvim --version): NVIM v0.8.0-dev-701-g2a9c9371b
  • Operating system and version: Windows/WSL-Ubuntu 20.04

Checklist:

  • My code follows the style guidelines of this project (stylua)
  • [x ] I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (lua annotations)

Since we use assert to check that description is not nil then using "if"
is not needed.

Signed-off-by: Radu Alexe <[email protected]>
Copy link
Member

@Conni2461 Conni2461 left a comment

Choose a reason for hiding this comment

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

LGTM thanks :)

@Conni2461 Conni2461 merged commit c92f863 into nvim-telescope:master Aug 26, 2022
Conni2461 pushed a commit that referenced this pull request Aug 26, 2022
(cherry picked from commit c92f863)
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