We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6efda0 commit 1b69ca4Copy full SHA for 1b69ca4
Rubberduck.Core/UI/CodeExplorer/Commands/ExportCommand.cs
@@ -100,15 +100,8 @@ public bool PromptFileNameAndExport(QualifiedModuleName qualifiedModule)
100
var component = ProjectsProvider.Component(qualifiedModule);
101
try
102
{
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
+ var path = System.IO.Path.GetDirectoryName(dialog.FileName);
+ component.ExportAsSourceFile(path);
112
}
113
catch (Exception ex)
114
0 commit comments