Skip to content

Commit

Permalink
Update isNotInitialised function comment
Browse files Browse the repository at this point in the history
Signed-off-by: Hayden Blauzvern <[email protected]>
  • Loading branch information
haydentherapper committed Feb 12, 2025
1 parent ad8f476 commit 0d34c19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/posix/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ type treeState struct {
Root []byte `json:"root"`
}

// isNotInitialised returns true if the provided directory for the log does not exist
// or is empty.
// isNotInitialised returns true if the provided directory for the log does not exist,
// is empty, or if the tree state is missing.
func (s *Storage) isNotInitialised() (bool, error) {
_, err := os.Stat(s.path)
// check if the directory exists
Expand Down

0 comments on commit 0d34c19

Please sign in to comment.