From 6f065f03145b5dbdd0d414d034f24a0f29ab2d26 Mon Sep 17 00:00:00 2001 From: Sean Callan Date: Fri, 22 Dec 2023 14:51:16 -0500 Subject: [PATCH] chore: Run formatter --- lib/ua_parser/processor.ex | 2 +- lib/ua_parser/storage.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ua_parser/processor.ex b/lib/ua_parser/processor.ex index 0f35e11..ab01f8c 100644 --- a/lib/ua_parser/processor.ex +++ b/lib/ua_parser/processor.ex @@ -46,7 +46,7 @@ defmodule UAParser.Processor do end defp extract([document | _]) do - [{'user_agent_parsers', user_agents}, {'os_parsers', os}, {'device_parsers', devices}] = document + [{~c"user_agent_parsers", user_agents}, {~c"os_parsers", os}, {~c"device_parsers", devices}] = document [user_agents, os, devices] end diff --git a/lib/ua_parser/storage.ex b/lib/ua_parser/storage.ex index 1e8e4f5..ad547d0 100644 --- a/lib/ua_parser/storage.ex +++ b/lib/ua_parser/storage.ex @@ -11,7 +11,7 @@ defmodule UAParser.Storage do data = :ua_parser |> :code.priv_dir() - |> Kernel.++('/patterns.yml') + |> Kernel.++(~c"/patterns.yml") |> to_string |> :yamerl_constr.file([]) |> Processor.process()