Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SpecialAro committed Jan 15, 2024
1 parent 9e640f7 commit 06128c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/Controllers/Http/RecipeController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class RecipesController {
// Check if recipe creation is enabled
if (isCreationEnabled === 'false') {
return response.send(
'This server doesn\'t allow the creation of new recipes.',
"This server doesn't allow the creation of new recipes.",

Check failure on line 76 in app/Controllers/Http/RecipeController.ts

View workflow job for this annotation

GitHub Actions / adonis-js-check

Strings must use singlequote
);
}

Expand Down
10 changes: 5 additions & 5 deletions app/Controllers/Http/ServiceController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class ServiceController {

// Validate user input
const data = request.all();

try {
await request.validate({ schema: createSchema });
} catch (error) {
Expand Down Expand Up @@ -110,7 +110,7 @@ export default class ServiceController {
iconUrl: settings.iconId
? `${url}/v1/icon/${settings.iconId}`
: // eslint-disable-next-line unicorn/no-null
null,
null,

Check failure on line 113 in app/Controllers/Http/ServiceController.ts

View workflow job for this annotation

GitHub Actions / adonis-js-check

Expected indentation of 10 spaces but found 12
id: service.serviceId,
name: service.name,
recipeId: service.recipeId,
Expand Down Expand Up @@ -333,7 +333,7 @@ export default class ServiceController {
iconUrl: settings.iconId
? `${url}/v1/icon/${settings.iconId}`
: // eslint-disable-next-line unicorn/no-null
null,
null,

Check failure on line 336 in app/Controllers/Http/ServiceController.ts

View workflow job for this annotation

GitHub Actions / adonis-js-check

Expected indentation of 10 spaces but found 12
id: service.serviceId,
name: service.name,
recipeId: service.recipeId,
Expand All @@ -351,7 +351,7 @@ export default class ServiceController {
id = sanitize(id);
if (id === '') {
return response.status(404).send({
status: 'Icon doesn\'t exist',
status: "Icon doesn't exist",

Check failure on line 354 in app/Controllers/Http/ServiceController.ts

View workflow job for this annotation

GitHub Actions / adonis-js-check

Strings must use singlequote
});
}

Expand All @@ -362,7 +362,7 @@ export default class ServiceController {
} catch {
// File not available.
return response.status(404).send({
status: 'Icon doesn\'t exist',
status: "Icon doesn't exist",

Check failure on line 365 in app/Controllers/Http/ServiceController.ts

View workflow job for this annotation

GitHub Actions / adonis-js-check

Strings must use singlequote
});
}

Expand Down

0 comments on commit 06128c9

Please sign in to comment.