Skip to content

Commit ccec95b

Browse files
authored
Merge pull request #1314 from HubSpot/jasmith_hubspot/unwrap-raw-override-param-2.8.x
feat: add boolean parameter to withUnwrapRawOverride (2.8.x)
2 parents 90af49e + 3bac65a commit ccec95b

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.blazar.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ buildResources:
22
memoryMb: 10240
33

44
env:
5-
SKIP_VERSION_OVERRIDE: true
5+
SKIP_VERSION_OVERRIDE_ON_BRANCH: master-2.8.x

src/main/java/com/hubspot/jinjava/interpret/Context.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,11 +884,15 @@ public void setUnwrapRawOverride(boolean unwrapRawOverride) {
884884
}
885885

886886
public TemporaryValueClosable<Boolean> withUnwrapRawOverride() {
887+
return withUnwrapRawOverride(true);
888+
}
889+
890+
public TemporaryValueClosable<Boolean> withUnwrapRawOverride(boolean value) {
887891
TemporaryValueClosable<Boolean> temporaryValueClosable = new TemporaryValueClosable<>(
888892
isUnwrapRawOverride(),
889893
this::setUnwrapRawOverride
890894
);
891-
setUnwrapRawOverride(true);
895+
setUnwrapRawOverride(value);
892896
return temporaryValueClosable;
893897
}
894898

0 commit comments

Comments
 (0)