Remove typo s

This commit is contained in:
Jamil Bou Kheir
2021-12-23 17:47:04 -06:00
parent 7d22c5d6a8
commit 42001bd9a1
2 changed files with 3 additions and 3 deletions

View File

@@ -187,12 +187,12 @@ defmodule FzHttp.Devices do
defp persistent_keepalives_config(device) do
pk = persistent_keepalives(device)
pk && "PersistentKeepalives = #{pk}"
pk && "PersistentKeepalive = #{pk}"
if is_nil(pk) do
""
else
"PersistentKeepalives = #{pk}"
"PersistentKeepalive = #{pk}"
end
end

View File

@@ -197,7 +197,7 @@ defmodule FzHttpWeb.DeviceLive.ShowTest do
assert flash["info"] == "Device updated successfully."
{:ok, _view, html} = live(conn, path)
assert html =~ "PersistentKeepalives = 120"
assert html =~ "PersistentKeepalive = 120"
end
test "prevents empty names", %{authed_conn: conn, device: device} do