Skip to content

Commit

Permalink
Remove redundant global keyword usage (#1927)
Browse files Browse the repository at this point in the history
Also constify _html_as_latex
  • Loading branch information
fingolfin authored Dec 16, 2024
1 parent f79ace0 commit 739c5fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/Assertions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
#
################################################################################

global const VERBOSE_SCOPE = Symbol[]
const VERBOSE_SCOPE = Symbol[]

global const VERBOSE_LOOKUP = Dict{Symbol, Int}()
const VERBOSE_LOOKUP = Dict{Symbol, Int}()

global const VERBOSE_PRINT_INDENT = Int[ 0 ]
const VERBOSE_PRINT_INDENT = Int[ 0 ]

@doc raw"""
AbstractAlgebra.add_verbosity_scope(s::Symbol) -> Nothing
Expand Down Expand Up @@ -375,9 +375,9 @@ end
#
################################################################################

global const ASSERT_SCOPE = Symbol[]
const ASSERT_SCOPE = Symbol[]

global const ASSERT_LOOKUP = Dict{Symbol, Int}()
const ASSERT_LOOKUP = Dict{Symbol, Int}()

@doc raw"""
AbstractAlgebra.add_assertion_scope(s::Symbol) -> Nothing
Expand Down
2 changes: 1 addition & 1 deletion src/PrettyPrinting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function show_obj(io::IO, mi::MIME, obj)
finish(S)
end

global _html_as_latex = Ref{Bool}(false)
const _html_as_latex = Ref{Bool}(false)

@doc raw"""
get_html_as_latex()
Expand Down

0 comments on commit 739c5fc

Please sign in to comment.