Skip to content

Commit 2a2661e

Browse files
authored
Move to !== comparison for nothing (#183)
This is consistent with the usage of `!==` in fit.jl. It is also picked up as a "Problem" by VSCode when developing.
1 parent ce87119 commit 2a2661e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/partial_out.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ function partial_out(
4545
f = FormulaTerm(f.lhs, tuple(ConstantTerm(1), eachterm(f.rhs)...))
4646
end
4747
formula, formula_endo, formula_iv = parse_iv(f)
48-
has_iv = formula_iv != nothing
48+
has_iv = formula_iv !== nothing
4949
has_iv && throw("partial_out does not support instrumental variables")
50-
has_weights = weights != nothing
50+
has_weights = weights !== nothing
5151

5252

5353
# create a dataframe without missing values & negative weights
@@ -148,4 +148,4 @@ function partial_out(
148148
end
149149
end
150150
return out, esample, iterations, convergeds
151-
end
151+
end

0 commit comments

Comments
 (0)