Fix some no unsafe assignment errors in azurecore (#22643)

This commit is contained in:
Charles Gagnon
2023-04-06 16:50:24 -07:00
committed by GitHub
parent 5ae0e3a503
commit 6a2ec12a35
10 changed files with 43 additions and 20 deletions

View File

@@ -98,6 +98,7 @@ function sanitize(objOrArray: any): string {
}
function sanitizeImpl(obj: any): string {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
obj = Object.assign({}, obj);
delete obj.domains; // very long and not really useful
// shorten all tokens since we don't usually need the exact values and there's security concerns if they leaked