Skip to content

Commit 1534231

Browse files
🤖 Format .jl files (#472)
Co-authored-by: tmigot <tmigot@users.noreply.github.com>
1 parent 508033b commit 1534231

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/nlp/utils.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ macro default_counters(Model, inner)
132132
push!(ex.args, :(NLPModels.increment!(nlp::$(esc(Model)), s::Symbol) = increment!(nlp.$inner, s)))
133133
push!(ex.args, :(NLPModels.decrement!(nlp::$(esc(Model)), s::Symbol) = decrement!(nlp.$inner, s)))
134134

135-
push!(ex.args, :(Base.getproperty(nlp::$(esc(Model)), s::Symbol) = ( s == :counters ? nlp.$inner.counters : getfield(nlp ,s))))
135+
push!(
136+
ex.args,
137+
:(
138+
Base.getproperty(nlp::$(esc(Model)), s::Symbol) =
139+
(s == :counters ? nlp.$inner.counters : getfield(nlp, s))
140+
),
141+
)
136142
ex
137143
end

0 commit comments

Comments
 (0)