From df2be5efe14c1a64986495815eedbdea7f0ada4f Mon Sep 17 00:00:00 2001 From: Rafael Schouten Date: Wed, 27 Nov 2024 19:28:08 +0100 Subject: [PATCH] using isdefined --- ext/DimensionalDataDiskArraysExt.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/DimensionalDataDiskArraysExt.jl b/ext/DimensionalDataDiskArraysExt.jl index 0ac69651f..5d9c5b860 100644 --- a/ext/DimensionalDataDiskArraysExt.jl +++ b/ext/DimensionalDataDiskArraysExt.jl @@ -12,7 +12,7 @@ import DiskArrays # cache was only introduced in DiskArrays v0.4, so # we lock out the method definition if the method does # not exist. -@static if :cache in names(DiskArrays) +@static if isdefined(DiskArrays, :cache) DiskArrays.cache(x::Union{AbstractDimStack,AbstractDimArray}; kw...) = modify(A -> DiskArrays.cache(A; kw...), x) end