Skip to content

Commit

Permalink
fixup! Make the getInputMapping lazily in RemoteAction
Browse files Browse the repository at this point in the history
  • Loading branch information
moroten committed Oct 21, 2021
1 parent 9e5ee21 commit 8e2db25
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,6 @@ public static class RemoteAction {
private final Action action;
private final ActionKey actionKey;

private SortedMap<PathFragment, ActionInput> lazyInputMap = null;

RemoteAction(
Spawn spawn,
SpawnExecutionContext spawnExecutionContext,
Expand Down Expand Up @@ -316,10 +314,7 @@ public String getActionId() {
*/
public SortedMap<PathFragment, ActionInput> getInputMap()
throws IOException, ForbiddenActionInputException {
if (lazyInputMap == null) {
lazyInputMap = remotePathResolver.getInputMapping(spawnExecutionContext);
}
return lazyInputMap;
return remotePathResolver.getInputMapping(spawnExecutionContext);
}

/**
Expand Down

0 comments on commit 8e2db25

Please sign in to comment.