mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix outdated comment for readAndWatchFileWithHash
This commit is contained in:
@@ -843,10 +843,6 @@ export function readAndWatchDirectory(
|
||||
// Calculating the sha hash can be expensive for large files. By
|
||||
// returning the calculated hash along with the file contents, the
|
||||
// hash doesn't need to be calculated again for static files.
|
||||
//
|
||||
// We only calculate the hash if needed here, so callers must not
|
||||
// *rely* on the hash being returned; merely that if the hash is
|
||||
// present, it is the correct hash of the contents.
|
||||
export function readAndWatchFileWithHash(watchSet: WatchSet, absPath: string) {
|
||||
const result: {
|
||||
contents: string | Buffer | null;
|
||||
|
||||
Reference in New Issue
Block a user