Skip to content

Commit 8fdf39f

Browse files
author
Angular Builds
committed
d56c8de refactor: minor code cleanup to improve code health
1 parent 4a7ab3c commit 8fdf39f

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

node/host.js

-2
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,9 @@ class NodeJsSyncHost {
161161
});
162162
}
163163
isDirectory(path) {
164-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
165164
return this.stat(path).pipe((0, rxjs_1.map)((stat) => stat.isDirectory()));
166165
}
167166
isFile(path) {
168-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
169167
return this.stat(path).pipe((0, rxjs_1.map)((stat) => stat.isFile()));
170168
}
171169
// Some hosts may not support stat.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular-devkit/core",
3-
"version": "18.1.0-next.3+sha-0d2d986",
3+
"version": "18.1.0-next.3+sha-d56c8de",
44
"description": "Angular DevKit - Core Utility Library",
55
"main": "src/index.js",
66
"typings": "src/index.d.ts",

src/json/schema/registry.js

+1
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ class CoreSchemaRegistry {
291291
}
292292
// Validate using ajv
293293
try {
294+
// eslint-disable-next-line @typescript-eslint/await-thenable
294295
const success = await validator.call(validationContext, data);
295296
if (!success) {
296297
return { data, success, errors: validator.errors ?? [] };

uniqueId

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Tue Jun 25 2024 19:25:10 GMT+0000 (Coordinated Universal Time)
1+
Tue Jun 25 2024 21:01:45 GMT+0000 (Coordinated Universal Time)

0 commit comments

Comments
 (0)