Skip to content

Commit 739c5fc

Browse files
authored
Remove redundant global keyword usage (#1927)
Also constify _html_as_latex
1 parent f79ace0 commit 739c5fc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Assertions.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
#
1717
################################################################################
1818

19-
global const VERBOSE_SCOPE = Symbol[]
19+
const VERBOSE_SCOPE = Symbol[]
2020

21-
global const VERBOSE_LOOKUP = Dict{Symbol, Int}()
21+
const VERBOSE_LOOKUP = Dict{Symbol, Int}()
2222

23-
global const VERBOSE_PRINT_INDENT = Int[ 0 ]
23+
const VERBOSE_PRINT_INDENT = Int[ 0 ]
2424

2525
@doc raw"""
2626
AbstractAlgebra.add_verbosity_scope(s::Symbol) -> Nothing
@@ -375,9 +375,9 @@ end
375375
#
376376
################################################################################
377377

378-
global const ASSERT_SCOPE = Symbol[]
378+
const ASSERT_SCOPE = Symbol[]
379379

380-
global const ASSERT_LOOKUP = Dict{Symbol, Int}()
380+
const ASSERT_LOOKUP = Dict{Symbol, Int}()
381381

382382
@doc raw"""
383383
AbstractAlgebra.add_assertion_scope(s::Symbol) -> Nothing

src/PrettyPrinting.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function show_obj(io::IO, mi::MIME, obj)
148148
finish(S)
149149
end
150150

151-
global _html_as_latex = Ref{Bool}(false)
151+
const _html_as_latex = Ref{Bool}(false)
152152

153153
@doc raw"""
154154
get_html_as_latex()

0 commit comments

Comments
 (0)