Skip to content

Commit 13e10ae

Browse files
committed
Remove dead code found by the type system
1 parent 90395bb commit 13e10ae

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/livebook_web/live/file_select_component.ex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,7 @@ defmodule LivebookWeb.FileSelectComponent do
221221
<div
222222
:if={not @loading}
223223
class={[
224-
"grow -m-1 p-1 h-full rounded-lg relative",
225-
@loading && "overflow-y-hidden",
226-
not @loading && "overflow-y-auto tiny-scrollbar"
224+
"grow -m-1 p-1 h-full rounded-lg relative overflow-y-auto tiny-scrollbar"
227225
]}
228226
tabindex="-1"
229227
phx-hook="Dropzone"

lib/livebook_web/live/session_live/section_component.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ defmodule LivebookWeb.SessionLive.SectionComponent do
225225
<.remix_icon
226226
:if={@section_view.parent}
227227
icon="arrow-right-s-line"
228-
class={[(@section_view.parent && @section_view.parent.id == parent.id) || "invisible"]}
228+
class={[@section_view.parent.id == parent.id || "invisible"]}
229229
/>
230230
<span>{parent.name}</span>
231231
</button>

0 commit comments

Comments
 (0)