mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 08:47:21 +00:00
Turned getter-like extension methods into extension properties (#1157)
This commit is contained in:
1 parent
0375318b1b
commit
f649febf88
286 files changed
+1379
-1109
No files matched your search
@@ -95,13 +95,13 @@ public static class IContentExtensions
|
||||
/// <returns>The content of the file to write.</returns>
|
||||
public string ToExportContent(MessageFile file)
|
||||
{
|
||||
if (file.Format.IsTabular())
|
||||
if (file.Format.IsTabular)
|
||||
return file.Content;
|
||||
|
||||
if (file.Format is FileExportFormat.SOURCE_CODE)
|
||||
return ToSourceCodeFile(file);
|
||||
|
||||
var sources = content.Sources.ToExportMarkdown(file.Format.FollowsPageAnchors());
|
||||
var sources = content.Sources.ToExportMarkdown(file.Format.FollowsPageAnchors);
|
||||
if (file.Format is FileExportFormat.MARKDOWN)
|
||||
return AppendSources(file.Content, sources);
|
||||
|
||||
|
||||
Reference in new issue
Block a user