mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 11:25:17 +00:00
linting fixes
This commit is contained in:
parent
aacd8e6a50
commit
a24fc43526
@ -172,9 +172,10 @@ const decorator = (service) => ({
|
||||
return service.findMany.call(this, uid, opts);
|
||||
}
|
||||
const output = service.findMany.call(this, uid, opts);
|
||||
if (output == null || output.length == 0) {
|
||||
if (output === null || output.length === 0) {
|
||||
return null;
|
||||
}
|
||||
//This could break future decorators since they don't expect the value not to be an array
|
||||
return output[0];
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user