Skip to content

Commit

Permalink
redact policy
Browse files Browse the repository at this point in the history
  • Loading branch information
rooklift committed Mar 31, 2024
1 parent 9722c1d commit c93e593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ class Engine {
let redacted = {};

for (let [key, value] of Object.entries(o)) {
if (key !== "moveInfos" && key !== "ownership") {
if (!["moveInfos", "ownership", "policy"].includes(key)) {
redacted[key] = value; // Note this is a shallow copy, so we must not do anything destructive to it.
} else {
redacted[key] = ["redacted"];
Expand Down

0 comments on commit c93e593

Please sign in to comment.