Skip to content

Commit

Permalink
revert bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Jul 20, 2022
1 parent d227b47 commit 36595c8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/EditorConfig.Core/FileConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ internal FileConfiguration(Version version, string fileName, List<ConfigSection>

IndentStyle = Sections.LastOrDefault(s => s.IndentStyle.HasValue)?.IndentStyle;
IndentSize = Sections.LastOrDefault(s => s.IndentSize != null)?.IndentSize;
TabWidth = Sections.FirstOrDefault(s => s.TabWidth.HasValue)?.TabWidth;
EndOfLine = Sections.FirstOrDefault(s => s.EndOfLine.HasValue)?.EndOfLine;
Charset = Sections.FirstOrDefault(s => s.Charset.HasValue)?.Charset;
TrimTrailingWhitespace = Sections.FirstOrDefault(s => s.TrimTrailingWhitespace.HasValue)?.TrimTrailingWhitespace;
InsertFinalNewline = Sections.FirstOrDefault(s => s.InsertFinalNewline.HasValue)?.InsertFinalNewline;
MaxLineLength = Sections.FirstOrDefault(s => s.MaxLineLength.HasValue)?.MaxLineLength;
TabWidth = Sections.LastOrDefault(s => s.TabWidth.HasValue)?.TabWidth;
EndOfLine = Sections.LastOrDefault(s => s.EndOfLine.HasValue)?.EndOfLine;
Charset = Sections.LastOrDefault(s => s.Charset.HasValue)?.Charset;
TrimTrailingWhitespace = Sections.LastOrDefault(s => s.TrimTrailingWhitespace.HasValue)?.TrimTrailingWhitespace;
InsertFinalNewline = Sections.LastOrDefault(s => s.InsertFinalNewline.HasValue)?.InsertFinalNewline;
MaxLineLength = Sections.LastOrDefault(s => s.MaxLineLength.HasValue)?.MaxLineLength;

//default tab_width to indent_size when indent size is a number
if (IndentSize != null && IndentSize.NumberOfColumns.HasValue)
Expand Down

0 comments on commit 36595c8

Please sign in to comment.