Skip to content

Commit

Permalink
Make sure you can set enabled? to false
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaAK authored Aug 14, 2023
1 parent 49b0e38 commit 858465c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/request_cache/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule RequestCache.Config do
@app :request_cache_plug

def verbose? do
Application.get_env(@app, :verbose?) || false
!!Application.get_env(@app, :verbose?)
end

def graphql_paths do
Expand All @@ -24,7 +24,7 @@ defmodule RequestCache.Config do
end

def enabled? do
Application.get_env(@app, :enabled?) || true
!!Application.get_env(@app, :enabled?)
end

def default_concache_opts do
Expand Down

0 comments on commit 858465c

Please sign in to comment.