Skip to content

Commit 85dc339

Browse files
committed
Fix code formatting.
1 parent b6e330b commit 85dc339

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/readme.graph.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ directive:
309309
let newEntityId = EntityName + 'Id';
310310
let newEntityIdPropRegex = new RegExp("^\\s*public\\s*string\\s*"+newEntityId+"\\.*","gm");
311311
let existingIdPropRegex = /(^\s*)(public\s*string\s*Id\s.*)/gm;
312-
if ((!$.match(newEntityIdPropRegex)) && $.match(existingIdPropRegex) && (newEntityId != "DirectoryObjectId") && (newEntityId != "EntityId") && (newEntityId != "BaseItemId")) {
313-
$ = $.replace(existingIdPropRegex, '$1$2\n$1partial void AfterToJson(ref Microsoft.Graph.PowerShell.Runtime.Json.JsonObject container, Microsoft.Graph.PowerShell.Runtime.SerializationMode serializationMode) { if (serializationMode == Microsoft.Graph.PowerShell.Runtime.SerializationMode.IncludeAll) { AddIf(null != this.Id ? (Microsoft.Graph.PowerShell.Runtime.Json.JsonNode)new Microsoft.Graph.PowerShell.Runtime.Json.JsonString(this.Id) : null, "'+ EntityName.toLowerCase() +'-id", container.Add); }\n}\n');
312+
if ((!$.match(newEntityIdPropRegex)) && $.match(existingIdPropRegex) && (newEntityId != "EntityId") && (newEntityId != "BaseItemId")) {
313+
$ = $.replace(existingIdPropRegex, '$1$2\n\n$1partial void AfterToJson(ref Microsoft.Graph.PowerShell.Runtime.Json.JsonObject container, Microsoft.Graph.PowerShell.Runtime.SerializationMode serializationMode)\n$1{\n$1\tif (serializationMode == Microsoft.Graph.PowerShell.Runtime.SerializationMode.IncludeAll) {\n$1\t\tAddIf(null != this.Id ? (Microsoft.Graph.PowerShell.Runtime.Json.JsonNode)new Microsoft.Graph.PowerShell.Runtime.Json.JsonString(this.Id) : null, "'+ EntityName.toLowerCase() +'-id", container.Add);\n$1\t}\n$1}');
314314
}
315315
}
316316
}

0 commit comments

Comments
 (0)