Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
eschultink committed Oct 28, 2024
1 parent 03edff3 commit cb76633
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions java/core/src/main/java/co/worklytics/psoxy/PsoxyModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import com.google.api.client.http.HttpContent;
import com.google.api.client.json.JsonFactory;
import com.google.api.client.json.gson.GsonFactory;
import com.google.common.base.Preconditions;
import com.jayway.jsonpath.Configuration;
import com.jayway.jsonpath.spi.json.JacksonJsonProvider;
import com.jayway.jsonpath.spi.mapper.JacksonMappingProvider;
Expand Down Expand Up @@ -248,7 +247,7 @@ JsonSchemaFilterUtils schemaRuleUtils(EnvVarsConfigService envVarsConfigService)

//TODO: probably more proper to override with a 'development' module of some kind
JsonSchemaFilterUtils.Options.OptionsBuilder options = JsonSchemaFilterUtils.Options.builder();
options.logRedactions(envVarsConfigService.is());
options.logRedactions(envVarsConfigService.isDevelopment());

return new JsonSchemaFilterUtils(objectMapper, options.build());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public Optional<String> getConfigPropertyAsOptional(ConfigProperty property) {
return Optional.ofNullable(System.getenv(property.name()));
}

boolean isDevelopment() {
public boolean isDevelopment() {
return this.getConfigPropertyAsOptional(ProxyConfigProperty.IS_DEVELOPMENT_MODE)
.map(Boolean::parseBoolean).orElse(false);
}
Expand Down

0 comments on commit cb76633

Please sign in to comment.