Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: jchristgit <[email protected]>
  • Loading branch information
Th3-M4jor and jchristgit authored Aug 11, 2024
1 parent cf4adc4 commit f9ab495
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nostrum/cache/guild_cache/mnesia.ex
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if Code.ensure_loaded?(:mnesia) do
end

@impl GuildCache
@doc "get a guild from the cache."
@doc "Get a guild from the cache."
@spec get(Guild.id()) :: {:ok, Guild.t()} | {:error, :not_found}
def get(guild_id) do
:mnesia.activity(:sync_transaction, fn ->
Expand Down
2 changes: 2 additions & 0 deletions lib/nostrum/cache/user_cache.ex
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ defmodule Nostrum.Cache.UserCache do
@callback child_spec(term()) :: Supervisor.child_spec()

@doc """
Retrieve a user from the cache by ID.
## Example
```elixir
Expand Down

0 comments on commit f9ab495

Please sign in to comment.