From 57089d74e26ca86ae35b3d93a2307e554bb1df8f Mon Sep 17 00:00:00 2001 From: t-bltg Date: Sat, 2 Nov 2024 12:51:14 +0100 Subject: [PATCH] update docs (#397) --- docs/gen_docs.jl | 4 ++-- test/runtests.jl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/gen_docs.jl b/docs/gen_docs.jl index 87c47c0d..ac4b1221 100644 --- a/docs/gen_docs.jl +++ b/docs/gen_docs.jl @@ -786,8 +786,8 @@ Inspired by [TextPlots.jl](https://github.com/sunetos/TextPlots.jl), which in tu main() = begin rng = StableRNG(1337) - bb = parse(Bool, get(ENV, "BB", "false")) ? 9 : nothing - bb_glyph = parse(Bool, get(ENV, "BB_GL", "false")) ? 8 : nothing + bb = Base.get_bool_env("BB", false) ? 9 : nothing + bb_glyph = Base.get_bool_env("BB_GL", false) ? 8 : nothing banner() """ diff --git a/test/runtests.jl b/test/runtests.jl index 91dd8915..f460ef52 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -38,7 +38,7 @@ test_ref(reference, actual) = @test_reference( format = "TXT" ) -is_ci() = get(ENV, "CI", "false") == "true" +is_ci() = Base.get_bool_env("CI", false) # helpers