mirror of
https://github.com/woutdp/live_svelte
synced 2026-05-24 09:28:21 +00:00
Use if instead of unless
Imo is easier to understand than unless
This commit is contained in:
parent
3ac0923eec
commit
40c95a89b3
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ defmodule LiveSvelte do
|
|||
def update(assigns, socket) do
|
||||
# Making sure we only render once
|
||||
ssr_code =
|
||||
unless connected?(socket) do
|
||||
if not connected?(socket) do
|
||||
props = Map.get(assigns, :props, %{})
|
||||
slot =
|
||||
~H"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue