Skip to content

Commit 2f7f07d

Browse files
committed
Fix lint issues
1 parent 6d02224 commit 2f7f07d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

kernel/chainstate_manager_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,11 @@ func (s *ChainstateManagerTestSuite) Setup(t *testing.T) {
143143
if err != nil {
144144
t.Fatalf("Failed to create temp dir: %v", err)
145145
}
146-
t.Cleanup(func() { os.RemoveAll(tempDir) })
146+
t.Cleanup(func() {
147+
if err := os.RemoveAll(tempDir); err != nil {
148+
t.Errorf("Failed to remove temp dir: %v", err)
149+
}
150+
})
147151

148152
dataDir := filepath.Join(tempDir, "data")
149153
blocksDir := filepath.Join(tempDir, "blocks")

kernel/context.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func NewContext(options *ContextOptions) (*Context, error) {
5353
//
5454
// Returns an error if the interrupt signal cannot be delivered.
5555
func (ctx *Context) Interrupt() error {
56-
result := C.btck_context_interrupt((*C.btck_Context)(ctx.handle.ptr))
56+
result := C.btck_context_interrupt((*C.btck_Context)(ctx.ptr))
5757
if result != 0 {
5858
return &InternalError{"Context interrupt failed"}
5959
}
@@ -65,5 +65,5 @@ func (ctx *Context) Interrupt() error {
6565
// The context is reference-counted internally, so this operation is efficient and does
6666
// not duplicate the underlying data.
6767
func (ctx *Context) Copy() *Context {
68-
return newContext((*C.btck_Context)(ctx.handle.ptr), false)
68+
return newContext((*C.btck_Context)(ctx.ptr), false)
6969
}

0 commit comments

Comments
 (0)