Skip to content

Commit 6bab866

Browse files
authored
Fix nowarn in testimage (#148)
1 parent 5809483 commit 6bab866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TestImages.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ $(reduce((x, y)->join([x, "\n - \`\"", splitext(y)[1], "\"\`"]), sort(remotefile
119119
function testimage(filename; download_only::Bool = false, nowarn=false, ops...)
120120
imagefile = image_path(full_imagename(filename))
121121

122-
if nowarn || startswith(basename(imagefile), "lena_")
122+
if !nowarn && startswith(basename(imagefile), "lena_")
123123
@warn "Usage of \"lena\" is not recommended, and the image may be removed in a later release. See https://womenlovetech.com/losing-lena-why-we-need-to-remove-one-image-and-end-techs-original-sin/ for more information." maxlog=1
124124
end
125125

0 commit comments

Comments
 (0)