style: fix linting errors, ref: NOISSUE

This commit is contained in:
Simon Diesenreiter 2024-12-02 15:33:11 +01:00
parent 0d85132a32
commit d5cfe494d8
2 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@ class StringBlock : BuildingBlockBase
{ {
word = inputs.YieldWord(); word = inputs.YieldWord();
} }
return this.CanParseWord(word); return this.CanParseWord(word);
} }
@ -29,11 +29,11 @@ class StringBlock : BuildingBlockBase
{ {
// Here we need to ensure we are not matching any non-string tokens, since string can match pretty much anything // Here we need to ensure we are not matching any non-string tokens, since string can match pretty much anything
IntegerBlock intBlock = new IntegerBlock(); IntegerBlock intBlock = new IntegerBlock();
if(intBlock.CanParseWord(word)) if (intBlock.CanParseWord(word))
{ {
return false; return false;
} }
return true; return true;
} }

View File

@ -43,9 +43,9 @@ public class TokenConverter
// in order to convert rows to columns or grid we require every row to have the same length // in order to convert rows to columns or grid we require every row to have the same length
int rowLength = this.rawTokens[0].Count; int rowLength = this.rawTokens[0].Count;
foreach(var tokenRow in this.rawTokens) foreach (var tokenRow in this.rawTokens)
{ {
if(tokenRow.Count != rowLength) if (tokenRow.Count != rowLength)
{ {
throw new Exception("Attempted to convert token dataset that is not able to be converted!"); throw new Exception("Attempted to convert token dataset that is not able to be converted!");
} }