8000 Check if API key has been set and exit with error message if not. by bradym · Pull Request #170 · lingrino/glen · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Check if API key has been set and exit with error message if not. #170

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

Merged
merged 3 commits into from
Jan 11, 2023

Conversation

bradym
Copy link
Contributor
@bradym bradym commented Jan 1, 2023
  • Adds IsAPIKeySet function to verify that the api key is not an empty string.
  • Exits with an error message and exit status of 1 if api key is not set.
  • I refactored the variable definitions in glenCmd() to stay within the function length set by golangci-lint.

Fixes #169

@bradym bradym requested a review from lingrino as a code owner January 1, 2023 21:04
@lingrino
Copy link
Owner

This is perfect. Thank you!

@lingrino lingrino merged commit 40275fe into lingrino:main Jan 11, 2023
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.

Glen tries to retrieve variables even if api key not set
2 participants
0