Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljaouen committed Mar 12, 2024
1 parent c715462 commit 8315bce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dynamic_programming_in_elixir.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ defmodule DynamicProgrammingInElixir do
else
in_edges = :digraph.in_edges(g, sink)

if in_edges == [] do
if Enum.empty?(in_edges) do
{:error, "Cannot reach source from current path"}
else
in_edges
Expand Down

0 comments on commit 8315bce

Please sign in to comment.