Skip to content

Commit

Permalink
Return DIRECTORY instead of REGULAR_FILE from TreeArtifactCompositeFi…
Browse files Browse the repository at this point in the history
…leArtifactValue#getType, to better reflect reality.

PiperOrigin-RevId: 486647417
Change-Id: I0f2b5c254dbc87561e5c185af57bf50aca6215dc
  • Loading branch information
tjgq authored and copybara-github committed Nov 7, 2022
1 parent 3f29b33 commit d645104
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,7 @@ public int hashCode() {

@Override
public FileStateType getType() {
// TODO(tjgq): Try to make this a directory to match reality. I'm not sure what might break.
return FileStateType.REGULAR_FILE;
return FileStateType.DIRECTORY;
}

@Override
Expand Down

0 comments on commit d645104

Please sign in to comment.