Skip to content

Commit

Permalink
Fix linters #76
Browse files Browse the repository at this point in the history
  • Loading branch information
unhandled-exception committed Jul 18, 2024
1 parent 871428d commit 3b07715
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/pkg/indexes/btree_dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (d *BTreeDir) insertEntry(e *BTreeDirEntry) (*BTreeDirEntry, error) {
return nil, err
}

splitPos := types.SlotID(records / 2) //nolint:gomnd
splitPos := types.SlotID(records / 2) //nolint:mnd
splitVal, err := d.contents.GetVal(splitPos)
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/indexes/btree_leaf.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func (l *BTreeLeaf) Insert(dataRID types.RID) (*BTreeDirEntry, error) {
}

// Расщепляем блок
splitPos := types.SlotID(records / 2) //nolint:gomnd
splitPos := types.SlotID(records / 2) //nolint:mnd

splitKey, err := l.contents.GetVal(splitPos)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/indexes/btree_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func NewBTreePage(trx scan.TRXInt, block types.Block, layout records.Layout) (*B

recordsCountOffset: types.Int64Size,
flagOffset: 0,
dataOffset: 2 * types.Int64Size, //nolint:gomnd
dataOffset: 2 * types.Int64Size, //nolint:mnd
}

if err := trx.Pin(block); err != nil {
Expand Down

0 comments on commit 3b07715

Please sign in to comment.