From 84b669651ec6a9355d7f790d8e0c8fbe1186300f Mon Sep 17 00:00:00 2001 From: MrDave1999 Date: Thu, 27 Jun 2024 20:43:32 -0500 Subject: [PATCH] refactor: Rename private method to ReadFileContents --- src/Loader/EnvLoader.HelperMethods.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Loader/EnvLoader.HelperMethods.cs b/src/Loader/EnvLoader.HelperMethods.cs index 0a4e322..51f0db8 100644 --- a/src/Loader/EnvLoader.HelperMethods.cs +++ b/src/Loader/EnvLoader.HelperMethods.cs @@ -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)); @@ -29,7 +29,7 @@ private void StartFileLoading(EnvFile envFile) /// The instance representing the .env file. /// envFile is null. /// true if the .env file exists, otherwise false. - private bool ReadAndParse(EnvFile envFile) + private bool ReadFileContents(EnvFile envFile) { ThrowHelper.ThrowIfNull(envFile, nameof(envFile)); Result result;