Skip to content
This repository was archived by the owner on Jun 23, 2026. It is now read-only.

Replaces direct env access with helper function - #40

Merged
FinnTheHero merged 2 commits into
epub-uploadfrom
development
Aug 16, 2025
Merged

Replaces direct env access with helper function#40
FinnTheHero merged 2 commits into
epub-uploadfrom
development

Conversation

@FinnTheHero

Copy link
Copy Markdown
Owner
  • Uses GetEnvVariable function to retrieve environment variables.
  • Prevents direct use of os.Getenv for better error handling and consistency.

Sets the Gin mode (e.g., debug, release) based on the
value of the `GIN_MODE` environment variable. This allows
for different configurations in development and production
environments without requiring code changes.
Replaces direct use of `os.Getenv` with a custom `GetEnvVariable`
function from the `common` package. This change enhances error
handling and allows for more robust environment variable retrieval.
@FinnTheHero FinnTheHero self-assigned this Aug 16, 2025
@FinnTheHero FinnTheHero added the enhancement New feature or request label Aug 16, 2025
@FinnTheHero
FinnTheHero merged commit a49f064 into epub-upload Aug 16, 2025
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant