Skip to content

Commit 60f37bf

Browse files
author
Maël Nison
committed
Linting
1 parent 07af9c4 commit 60f37bf

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

packages/jest-haste-map/src/crawlers/watchman.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,13 @@ module.exports = async function watchmanCrawl(
185185
let nextData;
186186

187187
const isOld = existingFileData && existingFileData[H.MTIME] === mtime;
188-
const hasChanged = existingFileData && sha1hex && existingFileData[H.SHA1] === sha1hex;
188+
const hasChanged =
189+
existingFileData && sha1hex && existingFileData[H.SHA1] === sha1hex;
189190

190191
if (existingFileData && isOld) {
191192
nextData = existingFileData;
192193
} else if (existingFileData && !hasChanged) {
193-
nextData = [... existingFileData];
194+
nextData = [...existingFileData];
194195
nextData[1] = mtime;
195196
} else {
196197
// See ../constants.js
@@ -202,7 +203,10 @@ module.exports = async function watchmanCrawl(
202203
if (mappings) {
203204
for (const absoluteVirtualFilePath of mappings) {
204205
if (!ignore(absoluteVirtualFilePath)) {
205-
const relativeVirtualFilePath = fastPath.relative(rootDir, filePath);
206+
const relativeVirtualFilePath = fastPath.relative(
207+
rootDir,
208+
filePath,
209+
);
206210
files.set(relativeVirtualFilePath, nextData);
207211
}
208212
}

0 commit comments

Comments
 (0)