Skip to content

Commit

Permalink
fix: resolve codeql issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aldy505 committed Jan 7, 2024
1 parent 0d7bbc7 commit 998338b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion repository/insert.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

func (d *Dependency) InsertPaste(ctx context.Context, paste Item) (Item, error) {
ctx, span := tracer.Start(ctx, "InsertPaste")
_, span := tracer.Start(ctx, "InsertPaste")
defer span.End()

compressedPaste, err := resources.CompressContent(paste.Paste)
Expand Down
4 changes: 2 additions & 2 deletions repository/read.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

func (d *Dependency) GetItemById(ctx context.Context, id string) (Item, error) {
ctx, span := tracer.Start(ctx, "GetItemById")
_, span := tracer.Start(ctx, "GetItemById")
defer span.End()

var item = Item{ID: id}
Expand Down Expand Up @@ -85,7 +85,7 @@ func (d *Dependency) GetItemById(ctx context.Context, id string) (Item, error) {
}

func (d *Dependency) ReadHash(ctx context.Context, h string) (exists bool, id string, err error) {
ctx, span := tracer.Start(ctx, "ReadHash")
_, span := tracer.Start(ctx, "ReadHash")
defer span.End()

err = d.DB.View(func(txn *badger.Txn) error {
Expand Down

0 comments on commit 998338b

Please sign in to comment.