app/models/poll.ts
Function load
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static async load(id: string, passphrase: string) {
const url = apiUrl(`polls/${id}`);
// TODO: Handle network connectivity error
const response = await fetch(url);
Function create
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static async create(
{
anonymousUser,
answerType,
description,