From 25920252f39a4ab174d2b8ea71ac5ce60d4716d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Saquetim?= Date: Tue, 24 Jun 2025 01:31:09 -0300 Subject: [PATCH] Fix linting issues --- .../discourse/components/solved-unaccept-answer-button.gjs | 2 +- .../discourse/initializers/extend-for-solved-button.gjs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/javascripts/discourse/components/solved-unaccept-answer-button.gjs b/assets/javascripts/discourse/components/solved-unaccept-answer-button.gjs index e662728..6c4d6fb 100644 --- a/assets/javascripts/discourse/components/solved-unaccept-answer-button.gjs +++ b/assets/javascripts/discourse/components/solved-unaccept-answer-button.gjs @@ -3,7 +3,7 @@ import { tracked } from "@glimmer/tracking"; import { action } from "@ember/object"; import { service } from "@ember/service"; import { htmlSafe } from "@ember/template"; -import { and, not } from "truth-helpers"; +import { and } from "truth-helpers"; import DButton from "discourse/components/d-button"; import icon from "discourse/helpers/d-icon"; import { ajax } from "discourse/lib/ajax"; diff --git a/assets/javascripts/discourse/initializers/extend-for-solved-button.gjs b/assets/javascripts/discourse/initializers/extend-for-solved-button.gjs index 7241a7c..c94c2c6 100644 --- a/assets/javascripts/discourse/initializers/extend-for-solved-button.gjs +++ b/assets/javascripts/discourse/initializers/extend-for-solved-button.gjs @@ -136,7 +136,7 @@ function customizePostMenu(api) { } function handleMessages(api) { - const handleMessages = async (controller, message) => { + const callback = async (controller, message) => { const topic = controller.model; if (topic) { @@ -144,8 +144,8 @@ function handleMessages(api) { } }; - api.registerCustomPostMessageCallback("accepted_solution", handleMessages); - api.registerCustomPostMessageCallback("unaccepted_solution", handleMessages); + api.registerCustomPostMessageCallback("accepted_solution", callback); + api.registerCustomPostMessageCallback("unaccepted_solution", callback); } export default {