Skip to content

Commit

Permalink
Replace not Enum.empty? by Enum.any?
Browse files Browse the repository at this point in the history
  • Loading branch information
NickNeck committed Jan 15, 2025
1 parent 3950de0 commit d735acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/statistex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ defmodule Statistex do

{outliers, rest} = do_outliers(samples, outliers_bounds: outliers_bounds)

if exclude_outliers?(configuration) and not Enum.empty?(outliers) do
if exclude_outliers?(configuration) and Enum.any?(outliers) do
configuration =
configuration
|> Keyword.put(:outliers_excluded, true)
Expand Down

0 comments on commit d735acd

Please sign in to comment.