Permalink
Browse files

Merge pull request #230 from joaothallis/refactor/with-remove-else

Remove unnecessary else
  • Loading branch information...
slashdotdash committed Nov 25, 2018
2 parents a140305 + 7b59122 commit f123a29033ad77b75b3d3f5678b2d0cd727f3ab3
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/commanded/snapshotting.ex
@@ -27,8 +27,6 @@ defmodule Commanded.Snapshotting do
{:ok, snapshot} <- EventStore.read_snapshot(source_uuid),
:ok <- validate_snapshot(snapshotting, snapshot) do
{:ok, snapshot}
else
{:error, error} -> {:error, error}
end
end

0 comments on commit f123a29

Please sign in to comment.