Skip to content

Commit

Permalink
[MEDIDEV-509] Coding style fix, second iteration.
Browse files Browse the repository at this point in the history
  • Loading branch information
FredSpb committed Oct 16, 2023
1 parent 719b2be commit 3e742ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ public LazyClassParser(ILog logger)
/// <param name="tableReader">Target document LazyTableReader.</param>
/// <param name="template"></param>
/// <param name="readerOffset">Target file offset relative to a template.</param>
/// <param name="formulaEvaluator">Target document formula evaluator.</param>
[NotNull]
public TModel Parse<TModel>(
[NotNull] LazyTableReader tableReader,
[NotNull] RenderingTemplate template,
ObjectSize readerOffset,
[NotNull] RenderingTemplate template,
[NotNull] ObjectSize readerOffset,
[CanBeNull] IFormulaEvaluator formulaEvaluator = null)
where TModel : new()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ private SimpleCell ToSimpleCell(
var i = int.Parse(cellValue);
cellValue = sharedStrings[i];
}
else if(
else if (
cell.CellFormula != null &&
formulaEvaluator != null &&
string.IsNullOrEmpty(cellValue))
{
var formulaEvaluatedValue = formulaEvaluator.TryEvaluate(
cell);

if(!string.IsNullOrEmpty(formulaEvaluatedValue))
if (!string.IsNullOrEmpty(formulaEvaluatedValue))
cellValue = formulaEvaluatedValue;
}

Expand Down

0 comments on commit 3e742ec

Please sign in to comment.