Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Oct 6, 2023
1 parent 30c7389 commit 81df8bb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lint/validators.nim
Original file line number Diff line number Diff line change
Expand Up @@ -382,13 +382,11 @@ proc isArrayOfStrings*(data: JsonNode;
result.setFalseAndPrint(msgStart & msgEnd, path, annotation = errorAnnotation)
elif isRequired:
if 0 notin allowedArrayLen:
result.setFalseAndPrint(&"The {q context} array is empty", path,
annotation = errorAnnotation)
result.setFalseAndPrint(&"The {q context} array is empty", path, annotation = errorAnnotation)
of JNull:
if isRequired:
result.setFalseAndPrint(&"The value of {q context} is " &
&"{qNull}, but it must be an array", path,
annotation = errorAnnotation)
&"{qNull}, but it must be an array", path, annotation = errorAnnotation)
else:
result.setFalseAndPrint(&"The value of {q context} is " &
"not an array", path, annotation = errorAnnotation)
Expand Down

0 comments on commit 81df8bb

Please sign in to comment.