Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
otherview committed Sep 13, 2023
1 parent 2e305c8 commit 520708b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions tools/walletextension/storage/database/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package database
import (
"database/sql"
"fmt"
obscurocommon "github.com/obscuronet/go-obscuro/go/common"
"github.com/obscuronet/go-obscuro/go/common/errutil"
"os"
"path/filepath"

obscurocommon "github.com/obscuronet/go-obscuro/go/common"
"github.com/obscuronet/go-obscuro/go/common/errutil"

_ "github.com/mattn/go-sqlite3" // sqlite driver for sql.Open()
common "github.com/obscuronet/go-obscuro/tools/walletextension/common"
)
Expand All @@ -19,6 +20,9 @@ type SqliteDatabase struct {
func NewSqliteDatabase(dbPath string) (*SqliteDatabase, error) {
// load the db file
dbFilePath, err := createOrLoad(dbPath)
if err != nil {
return nil, err
}

// open the db
db, err := sql.Open("sqlite3", dbFilePath)
Expand Down
3 changes: 2 additions & 1 deletion tools/walletextension/storage/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package storage
import (
"bytes"
"errors"
"testing"

"github.com/obscuronet/go-obscuro/go/common/errutil"
"github.com/stretchr/testify/require"
"testing"
)

var tests = map[string]func(storage Storage, t *testing.T){
Expand Down

0 comments on commit 520708b

Please sign in to comment.