mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-31 19:36:44 +01:00
Silence sobelow warnings
This commit is contained in:
parent
f2b6593da2
commit
ce653a53ba
1 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,7 @@ defmodule Philomena.Objects do
|
||||||
# Fetch a key from the primary storage backend and
|
# Fetch a key from the primary storage backend and
|
||||||
# write it into the destination file.
|
# write it into the destination file.
|
||||||
#
|
#
|
||||||
|
# sobelow_skip ["Traversal.FileModule"]
|
||||||
@spec download_file(String.t(), String.t()) :: any()
|
@spec download_file(String.t(), String.t()) :: any()
|
||||||
def download_file(key, file_path) do
|
def download_file(key, file_path) do
|
||||||
[opts] = primary_opts()
|
[opts] = primary_opts()
|
||||||
|
@ -23,6 +24,7 @@ defmodule Philomena.Objects do
|
||||||
# Upload a file using a single API call, writing the
|
# Upload a file using a single API call, writing the
|
||||||
# contents from the given path to storage.
|
# contents from the given path to storage.
|
||||||
#
|
#
|
||||||
|
# sobelow_skip ["Traversal.FileModule"]
|
||||||
@spec put(String.t(), String.t()) :: any()
|
@spec put(String.t(), String.t()) :: any()
|
||||||
def put(key, file_path) do
|
def put(key, file_path) do
|
||||||
{_, mime} = Mime.file(file_path)
|
{_, mime} = Mime.file(file_path)
|
||||||
|
|
Loading…
Reference in a new issue