From 6d8b6f79b44b6a41a630aa3aad5a3c7f16701798 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Sat, 11 Apr 2020 21:49:09 +1000 Subject: General cleanup. Try not to send strings to specify the tuple or table. Try to avoid using the Set method on tuples. Always create new tuples and add them to the section in the same line. --- .../Bind/AddCreateFoldersCommand.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/AddCreateFoldersCommand.cs') diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/AddCreateFoldersCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/AddCreateFoldersCommand.cs index 6cc4153f..ba844da4 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/AddCreateFoldersCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/AddCreateFoldersCommand.cs @@ -26,13 +26,11 @@ namespace WixToolset.Core.WindowsInstaller.Bind { if (!createFolderTuplesByComponentRef.Contains(componentTuple.Id.Id)) { - var createFolderTuple = new CreateFolderTuple(componentTuple.SourceLineNumbers) + this.Section.AddTuple(new CreateFolderTuple(componentTuple.SourceLineNumbers) { DirectoryRef = componentTuple.DirectoryRef, ComponentRef = componentTuple.Id.Id, - }; - - this.Section.Tuples.Add(createFolderTuple); + }); } } } -- cgit v1.2.3-55-g6feb