Skip to content

Commit 59c7203

Browse files
committed
Improve comments
1 parent e755262 commit 59c7203

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/env/lib/config/load-config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,16 @@ module.exports = async function loadConfig(
6868
}
6969
}
7070

71-
// Try legacy md5 cache first, fall back to descriptive name
7271
const cacheDirectory = await getCacheDirectory();
72+
73+
// If a cache already exists at the "legacy" path (which consists of a
74+
// simple but opaque md5 hash), honor it.
7375
let cacheDirectoryPath = path.resolve(
7476
cacheDirectory,
7577
md5( configFilePath )
7678
);
7779

80+
// Otherwise, prefer a more descriptive path.
7881
if ( ! existsSync( cacheDirectoryPath ) ) {
7982
cacheDirectoryPath = path.resolve(
8083
cacheDirectory,

0 commit comments

Comments
 (0)