mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
Fix lint
This commit is contained in:
@@ -129,7 +129,7 @@ module.exports = class LieSwatterCommand extends Command {
|
|||||||
if (!body.results) return this.fetchQuestions();
|
if (!body.results) return this.fetchQuestions();
|
||||||
const questions = body.results;
|
const questions = body.results;
|
||||||
return questions.map(question => {
|
return questions.map(question => {
|
||||||
const answer = question.correct_answer === 'True' ? true : false;
|
const answer = question.correct_answer === 'True';
|
||||||
return {
|
return {
|
||||||
question: decodeURIComponent(question.question),
|
question: decodeURIComponent(question.question),
|
||||||
category: decodeURIComponent(question.category),
|
category: decodeURIComponent(question.category),
|
||||||
|
|||||||
Reference in New Issue
Block a user