Skip to content

Commit

Permalink
Applying suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
cristineguadelupe committed Sep 5, 2023
1 parent 8351961 commit f03d1b8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/kino/remote_ execution_cell.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@ defmodule Kino.RemoteExecutionCell do

@impl true
def init(attrs, ctx) do
use_cookie_secret =
if Map.has_key?(attrs, "use_cookie_secret"), do: attrs["use_cookie_secret"], else: true

fields = %{
"assign_to" => attrs["assign_to"] || "",
"node" => attrs["node"] || "",
"cookie" => attrs["cookie"],
"use_cookie_secret" => use_cookie_secret,
"use_cookie_secret" => Map.get(attrs, "use_cookie_secret", true),
"cookie_secret" => attrs["cookie_secret"]
}

Expand Down

0 comments on commit f03d1b8

Please sign in to comment.