diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/SequencedSkyframeExecutor.java b/src/main/java/com/google/devtools/build/lib/skyframe/SequencedSkyframeExecutor.java index cc56cdabda896c..04d330fdd45eee 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/SequencedSkyframeExecutor.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/SequencedSkyframeExecutor.java @@ -311,10 +311,7 @@ private GraphInconsistencyReceiver getGraphInconsistencyReceiverForCommand( private boolean rewindingEnabled(OptionsProvider options) throws AbruptExitException { var buildRequestOptions = options.getOptions(BuildRequestOptions.class); - if (buildRequestOptions == null || !buildRequestOptions.rewindLostInputs) { - return false; - } - return true; + return buildRequestOptions != null && buildRequestOptions.rewindLostInputs; } /**