Skip to content

Commit 2e2899a

Browse files
committed
Run runic
1 parent b0ff62f commit 2e2899a

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

src/DataCaches.jl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,14 @@ function DataCache(key::Symbol; track_access::Bool = true, default_ttl::Union{No
365365
end
366366

367367
function DataCache()
368-
throw(ArgumentError(
369-
"DataCache() requires a name or path.\n" *
370-
" DataCache(:myproject) # named store in the DataCaches depot\n" *
371-
" DataCache(\"/my/path\") # explicit filesystem path\n" *
372-
" active_autocache() # the active autocache store"
373-
))
368+
throw(
369+
ArgumentError(
370+
"DataCache() requires a name or path.\n" *
371+
" DataCache(:myproject) # named store in the DataCaches depot\n" *
372+
" DataCache(\"/my/path\") # explicit filesystem path\n" *
373+
" active_autocache() # the active autocache store"
374+
)
375+
)
374376
end
375377

376378
"""

src/_migrate_legacy_defaultcache.jl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,14 @@ set_default_filecache!(cache::DataCache) = (
160160
set_active_autocache!(cache)
161161
)
162162

163-
Base.eval(Caches, :(
164-
defaultstore() = (
165-
Base.depwarn("`Caches.defaultstore()` is deprecated; use `Caches.autocachestore()` instead.", :defaultstore);
166-
autocachestore()
163+
Base.eval(
164+
Caches, :(
165+
defaultstore() = (
166+
Base.depwarn("`Caches.defaultstore()` is deprecated; use `Caches.autocachestore()` instead.", :defaultstore);
167+
autocachestore()
168+
)
167169
)
168-
))
170+
)
169171

170172
# ---------------------------------------------------------------------------
171173
# migrate_legacy_autocache — _DEFAULT/ → _AUTOCACHE/

0 commit comments

Comments
 (0)