projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update '.gitea/issue_template/feat.yml'
[akkoma]
/
test
/
support
/
null_cache.ex
diff --git
a/test/support/null_cache.ex
b/test/support/null_cache.ex
index 72e7c996a78788512d50a43ba93ba38dea7d4e75..47c10ebb685b693360141688b8aef3afef39d218 100644
(file)
--- a/
test/support/null_cache.ex
+++ b/
test/support/null_cache.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.NullCache do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.NullCache do
@@
-21,9
+21,11
@@
defmodule Pleroma.NullCache do
def get(_, _), do: {:ok, nil}
@impl true
def get(_, _), do: {:ok, nil}
@impl true
- def fetch!(_, _, func) do
- {_, res} = func.()
- res
+ def fetch!(_, key, func) do
+ case func.(key) do
+ {_, res} -> res
+ res -> res
+ end
end
@impl true
end
@impl true