From d5cfe494d8e8430f86b25ff3aedfb334e8610a5e Mon Sep 17 00:00:00 2001 From: Simon Diesenreiter Date: Mon, 2 Dec 2024 15:33:11 +0100 Subject: [PATCH] style: fix linting errors, ref: NOISSUE --- TextParser/Schema/BuildingBlocks/StringBlock.cs | 6 +++--- TextParser/TokenConverter.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/TextParser/Schema/BuildingBlocks/StringBlock.cs b/TextParser/Schema/BuildingBlocks/StringBlock.cs index 881e268..e873ba8 100644 --- a/TextParser/Schema/BuildingBlocks/StringBlock.cs +++ b/TextParser/Schema/BuildingBlocks/StringBlock.cs @@ -21,7 +21,7 @@ class StringBlock : BuildingBlockBase { word = inputs.YieldWord(); } - + 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 IntegerBlock intBlock = new IntegerBlock(); - if(intBlock.CanParseWord(word)) + if (intBlock.CanParseWord(word)) { return false; } - + return true; } diff --git a/TextParser/TokenConverter.cs b/TextParser/TokenConverter.cs index c24d836..6af2797 100644 --- a/TextParser/TokenConverter.cs +++ b/TextParser/TokenConverter.cs @@ -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 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!"); }