mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-04 08:06:43 +02:00
chore: resolve eslint warnings in packages/mermaid/src/diagrams/packet/parser.ts
This commit is contained in:
@@ -50,9 +50,7 @@ const getNextFittingBlock = (
|
|||||||
row: number,
|
row: number,
|
||||||
bitsPerRow: number
|
bitsPerRow: number
|
||||||
): [Required<PacketBlock>, PacketBlock | undefined] => {
|
): [Required<PacketBlock>, PacketBlock | undefined] => {
|
||||||
if (block.end === undefined) {
|
block.end ??= block.start;
|
||||||
block.end = block.start;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (block.start > block.end) {
|
if (block.start > block.end) {
|
||||||
throw new Error(`Block start ${block.start} is greater than block end ${block.end}.`);
|
throw new Error(`Block start ${block.start} is greater than block end ${block.end}.`);
|
||||||
|
Reference in New Issue
Block a user