Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Jan 29, 2025
1 parent c21496e commit eda4096
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/services/ngsi/ngsiService.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,15 @@ function sendUpdateValue(entityName, attributes, typeInformation, token, callbac
};
const wrappedNewCallback = (err, result) => {
if (err) {
return newCallback(err);
newCallback(err);
} else {
additionalCallback(result, (additionalErr, modifiedResult) => {
if (additionalErr) {
newCallback(additionalErr);
}
newCallback(null, modifiedResult || result);
});
}
additionalCallback(result, (additionalErr, modifiedResult) => {
if (additionalErr) {
return newCallback(additionalErr);
}
return newCallback(null, modifiedResult || result);
});
};
// check config about store last measure
if (typeInformation.storeLastMeasure) {
Expand Down

0 comments on commit eda4096

Please sign in to comment.