Skip to content

Commit

Permalink
style: lint fixes
Browse files Browse the repository at this point in the history
#16

[ci skip]
  • Loading branch information
Bugs5382 committed Dec 14, 2023
1 parent edaf6e6 commit 1c34e1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/builder/batch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,12 @@ export class Batch extends RootBase {
segment.set('1', this._messagesCount)
}


/**
* Get First Segment
* @since 1.0.0
* @param name
*/
getFirstSegment(name: string): Segment {
getFirstSegment (name: string): Segment {
return this._getFirstSegment(name)
}

Expand Down
4 changes: 2 additions & 2 deletions src/builder/fileBatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ export class FileBatch extends RootBase {
const seg = batch.getFirstSegment('BTS')
seg.set(1, batch._messagesCount + 1)
// add the message to the batch
batch.add(item, batch._messagesCount+1)
batch.add(item, batch._messagesCount + 1)
} else {
this._messagesCount = this._messagesCount + 1
this._messagesCount = this._messagesCount + 1
this.children.push(item)
}
} else {
Expand Down

0 comments on commit 1c34e1e

Please sign in to comment.