Showing 1,820 of 4,015 total issues
Avoid too many return
statements within this function. Open
Open
return event;
Avoid too many return
statements within this function. Open
Open
return User.getOwnerUser()
.then((owner) => {
// CASE: owner can assign role to any user
if (context.user === owner.id) {
if (hasUserPermission && hasApiKeyPermission) {
Avoid too many return
statements within this function. Open
Open
return Promise.reject(
new errors.ValidationError({
message: tpl(messages.invalidRoleValue.message),
context: tpl(messages.invalidRoleValue.context),
help: tpl(messages.invalidRoleValue.help)
Avoid too many return
statements within this function. Open
Open
return hasMemberPermission;
Avoid too many return
statements within this function. Open
Open
return this.utils.createUrl('/404/', false);
Avoid too many return
statements within this function. Open
Open
return '/404/';
Avoid too many return
statements within this function. Open
Open
return BLOCK_ACCESS;
Avoid too many return
statements within this function. Open
Open
return PERMIT_ACCESS;
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
return null;
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
return Promise.reject(new errors.InternalServerError({
message: 'Unknown Request error.',
code: 'IMAGE_SIZE_URL',
statusCode: err.statusCode,
context: err.url || imagePath,
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
return '';
Avoid too many return
statements within this function. Open
Open
return null;
Avoid too many return
statements within this function. Open
Open
return null;
Avoid too many return
statements within this function. Open
Open
return [imgBlogUrl, urlUtils.STATIC_IMAGE_URL_PREFIX, `/size/${sizeDirectoryName}`, formatPrefix, imageName].join('');