Skip to content

Commit af939be

Browse files
Alexey Stukalovalyst
authored andcommitted
remove no-op method
1 parent 87ff250 commit af939be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/observed/covariance.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ function SemObservedCovariance(;
7676

7777
if !isnothing(spec_colnames)
7878
obs_cov = reorder_obs_cov(obs_cov, spec_colnames, obs_colnames)
79-
obs_mean = reorder_obs_mean(obs_mean, spec_colnames, obs_colnames)
79+
isnothing(obs_mean) ||
80+
(obs_mean = reorder_obs_mean(obs_mean, spec_colnames, obs_colnames))
8081
end
8182

8283
n_man = Float64(size(obs_cov, 1))
@@ -114,7 +115,6 @@ function reorder_obs_cov(obs_cov, spec_colnames, obs_colnames)
114115
end
115116

116117
# reorder means ----------------------------------------------------------------------------
117-
reorder_obs_mean(obs_mean::Nothing, spec_colnames, obs_colnames) = nothing
118118

119119
function reorder_obs_mean(obs_mean, spec_colnames, obs_colnames)
120120
if spec_colnames == obs_colnames

0 commit comments

Comments
 (0)