From ce653a53ba3738de4e8f79e262d55cb502f9f328 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sat, 14 May 2022 20:54:13 -0400 Subject: [PATCH] Silence sobelow warnings --- lib/philomena/objects.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/philomena/objects.ex b/lib/philomena/objects.ex index 35d71fe4..6d05a6d8 100644 --- a/lib/philomena/objects.ex +++ b/lib/philomena/objects.ex @@ -8,6 +8,7 @@ defmodule Philomena.Objects do # Fetch a key from the primary storage backend and # write it into the destination file. # + # sobelow_skip ["Traversal.FileModule"] @spec download_file(String.t(), String.t()) :: any() def download_file(key, file_path) do [opts] = primary_opts() @@ -23,6 +24,7 @@ defmodule Philomena.Objects do # Upload a file using a single API call, writing the # contents from the given path to storage. # + # sobelow_skip ["Traversal.FileModule"] @spec put(String.t(), String.t()) :: any() def put(key, file_path) do {_, mime} = Mime.file(file_path)