Skip to content

Commit

Permalink
remove unecessary param
Browse files Browse the repository at this point in the history
  • Loading branch information
duarte-pompeu committed Dec 8, 2023
1 parent 6090d64 commit d61c1ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dotenv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,13 @@ def get_key(
dotenv_path: StrPath,
key_to_get: str,
encoding: Optional[str] = "utf-8",
verbose: bool = True,
) -> Optional[str]:
"""
Get the value of a given key from the given .env.
Returns `None` if the key isn't found or doesn't have a value.
"""
return DotEnv(dotenv_path, verbose=verbose, encoding=encoding).get(key_to_get)
return DotEnv(dotenv_path, verbose=True, encoding=encoding).get(key_to_get)


@contextmanager
Expand Down

0 comments on commit d61c1ed

Please sign in to comment.