mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-10 21:46:46 +08:00
Fix spec error type (#181)
This commit is contained in:
parent
bfaf6b7776
commit
9978d29831
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ defmodule LivebookWeb.Helpers do
|
||||||
@doc """
|
@doc """
|
||||||
Determines user platform based on the given *User-Agent* header.
|
Determines user platform based on the given *User-Agent* header.
|
||||||
"""
|
"""
|
||||||
@spec platform_from_user_agent(Sting.t()) :: :linux | :mac | :windows | :other
|
@spec platform_from_user_agent(String.t()) :: :linux | :mac | :windows | :other
|
||||||
def platform_from_user_agent(user_agent) when is_binary(user_agent) do
|
def platform_from_user_agent(user_agent) when is_binary(user_agent) do
|
||||||
cond do
|
cond do
|
||||||
linux?(user_agent) -> :linux
|
linux?(user_agent) -> :linux
|
||||||
|
|
Loading…
Add table
Reference in a new issue