Skip to content

Commit

Permalink
Merge pull request #51 from codecrafters-io/CC-788
Browse files Browse the repository at this point in the history
CC-788 try removing early return for errors with tree
  • Loading branch information
libmartinito authored Oct 18, 2023
2 parents 62a26c9 + d51d3d0 commit fe300cb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/stage_write_tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,7 @@ func testWriteTree(stageHarness *tester_utils.StageHarness) error {

logger.Infof("$ git ls-tree --name-only %v", sha)

tree, err := runGit(executable.WorkingDir, "ls-tree", "--name-only", sha)
if err != nil {
return err
}
tree, _ := runGit(executable.WorkingDir, "ls-tree", "--name-only", sha)

err = checkWithGit(logger, sha, tree, gitObjectFileContents, seed)
if err != nil {
Expand Down

0 comments on commit fe300cb

Please sign in to comment.