Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Commit

Permalink
Merge e602113 into 3e0003d
Browse files Browse the repository at this point in the history
  • Loading branch information
scouten committed Sep 3, 2019
2 parents 3e0003d + e602113 commit 0a50d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/xgit/core/tree.ex
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ defmodule Xgit.Core.Tree do
* The entries are properly sorted.
* All entries are valid, as determined by `Xgit.Core.Tree.Entry.valid?/1`.
"""
@spec valid?(dir_cache :: any) :: boolean
def valid?(dir_cache)
@spec valid?(tree :: any) :: boolean
def valid?(tree)

def valid?(%__MODULE__{entries: entries}) when is_list(entries) do
Enum.all?(entries, &Entry.valid?/1) && entries_sorted?([nil | entries])
Expand Down

0 comments on commit 0a50d53

Please sign in to comment.