Skip to content

Commit

Permalink
refactor: Rename private method to ReadFileContents
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDave1999 committed Jun 28, 2024
1 parent 266765d commit 84b6696
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Loader/EnvLoader.HelperMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ private void StartFileLoading(EnvFile envFile)
envFile.Encoding ??= _configuration.Encoding;
envFile.Optional = envFile.Optional ? envFile.Optional : _configuration.Optional;
envFile.Path = Path.Combine(_configuration.BasePath, envFile.Path);
envFile.Exists = ReadAndParse(envFile);
envFile.Exists = ReadFileContents(envFile);

if (!envFile.Exists && !envFile.Optional)
_validationResult.Add(errorMsg: string.Format(FileNotFoundMessage, envFile.Path));
Expand All @@ -29,7 +29,7 @@ private void StartFileLoading(EnvFile envFile)
/// <param name="envFile">The instance representing the .env file.</param>
/// <exception cref="ArgumentNullException"><c>envFile</c> is <c>null</c>.</exception>
/// <returns>true if the .env file exists, otherwise false.</returns>
private bool ReadAndParse(EnvFile envFile)
private bool ReadFileContents(EnvFile envFile)
{
ThrowHelper.ThrowIfNull(envFile, nameof(envFile));
Result<string> result;
Expand Down

0 comments on commit 84b6696

Please sign in to comment.