gitea push
This commit is contained in:
+6
-11
@@ -55,18 +55,13 @@ module.exports = class AliasFieldPlugin {
|
||||
descriptionFileData,
|
||||
this.field,
|
||||
);
|
||||
if (raw === null || typeof raw !== "object") {
|
||||
this._fieldDataCache.set(descriptionFileData, NO_FIELD_OBJECT);
|
||||
if (resolveContext.log) {
|
||||
resolveContext.log(
|
||||
`Field '${this.field}' doesn't contain a valid alias configuration`,
|
||||
);
|
||||
}
|
||||
return callback();
|
||||
}
|
||||
fieldData = /** @type {{ [k: string]: JsonPrimitive }} */ (raw);
|
||||
fieldData =
|
||||
raw === null || typeof raw !== "object"
|
||||
? NO_FIELD_OBJECT
|
||||
: /** @type {{ [k: string]: JsonPrimitive }} */ (raw);
|
||||
this._fieldDataCache.set(descriptionFileData, fieldData);
|
||||
} else if (fieldData === NO_FIELD_OBJECT) {
|
||||
}
|
||||
if (fieldData === NO_FIELD_OBJECT) {
|
||||
if (resolveContext.log) {
|
||||
resolveContext.log(
|
||||
`Field '${this.field}' doesn't contain a valid alias configuration`,
|
||||
|
||||
Reference in New Issue
Block a user