Skip to content

Commit def6767

Browse files
author
philippe lhardy
committed
lint github warnings
Signed-off-by: philippe lhardy <philippe.lhardy@astrolabe.coop>
1 parent 673edbd commit def6767

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

lib/Db/Poll.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -323,15 +323,15 @@ public function deserializeArray(array $pollConfiguration): self {
323323
$this->setAllowComment($pollConfiguration['allowComment'] ?? $this->getAllowComment());
324324
$this->setAllowMaybe($pollConfiguration['allowMaybe'] ?? $this->getAllowMaybe());
325325
$chosenRank = $pollConfiguration['chosenRank'] ?? $this->getChosenRank();
326-
if (is_array($chosenRank)) {
327-
$chosenRank = json_encode($chosenRank); // explicit serialisation
328-
} elseif (is_string($chosenRank)) {
329-
if (!json_decode($chosenRank)) {
330-
$chosenRank = '[]';
331-
}
332-
} else {
326+
if (is_array($chosenRank)) {
327+
$chosenRank = json_encode($chosenRank); // explicit serialisation
328+
} elseif (is_string($chosenRank)) {
329+
if (!json_decode($chosenRank)) {
333330
$chosenRank = '[]';
334331
}
332+
} else {
333+
$chosenRank = '[]';
334+
}
335335
$this->setChosenRank($chosenRank);
336336
$this->setAllowProposals($pollConfiguration['allowProposals'] ?? $this->getAllowProposals());
337337
$this->setAnonymousSafe($pollConfiguration['anonymous'] ?? $this->getAnonymous());

src/components/VoteTable/VoteButton.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ async function setVote() {
8181
async function handleRankSelected(event){
8282
const selectElement = event.target
8383
const rank = selectElement.value
84-
console.log('rank',rank,'event',event)
8584
try {
8685
await votesStore.set({
8786
option,

0 commit comments

Comments
 (0)