Skip to content

Commit

Permalink
changes for spellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
AydinE committed Mar 10, 2024
1 parent 6e6577e commit 05393d6
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ namespace {Namespace}
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple = true)]
public class {AttributeName} : System.Attribute
{{
public string Value {{ get; }}
public {AttributeName}(string constantName, string fileName, string jsonPath)
{{
Value = ""testvaluetje"";
}}
}}
}}";
Expand Down Expand Up @@ -165,8 +163,8 @@ private void GenerateCode(SourceProductionContext context, Compilation compilati

// Try get content of file from dictionary where key ends with filename
var fileContent = _fileContents
.FirstOrDefault(kvp =>
kvp.Key.EndsWith(fileName.Replace($"\"", string.Empty), StringComparison.Ordinal));
.FirstOrDefault(k =>
k.Key.EndsWith(fileName.Replace($"\"", string.Empty), StringComparison.Ordinal));

// If the file content is empty, skip
if (string.IsNullOrEmpty(fileContent.Value))
Expand Down

0 comments on commit 05393d6

Please sign in to comment.