Skip to content

Commit 1b69ca4

Browse files
committed
Don't special case document modules
1 parent b6efda0 commit 1b69ca4

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Rubberduck.Core/UI/CodeExplorer/Commands/ExportCommand.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,8 @@ public bool PromptFileNameAndExport(QualifiedModuleName qualifiedModule)
100100
var component = ProjectsProvider.Component(qualifiedModule);
101101
try
102102
{
103-
if (component.Type == ComponentType.Document)
104-
{
105-
var path = System.IO.Path.GetDirectoryName(dialog.FileName);
106-
component.ExportAsSourceFile(path);
107-
}
108-
else
109-
{
110-
component.Export(dialog.FileName);
111-
}
103+
var path = System.IO.Path.GetDirectoryName(dialog.FileName);
104+
component.ExportAsSourceFile(path);
112105
}
113106
catch (Exception ex)
114107
{

0 commit comments

Comments
 (0)