Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: make `golangci-lint` happy
Stevena8a3cf31b404
diff --git a/store/db/db.go b/store/db/db.goindex 5f7ce0593..d1e019a32 100644--- a/store/db/db.go+++ b/store/db/db.go@@ -7,7 +7,6 @@ import ("errors""fmt""io/fs"- "io/ioutil""os""regexp""sort"@@ -91,12 +90,12 @@ func (db *DB) Open(ctx context.Context) (err error) {minorVersionList := getMinorVersionList()// backup the raw database file before migration- rawBytes, err := ioutil.ReadFile(db.profile.DSN)+ rawBytes, err := os.ReadFile(db.profile.DSN)if err != nil {return fmt.Errorf("failed to read raw database file, err: %w", err)}backupDBFilePath := fmt.Sprintf("%s/memos_%s_%d_backup.db", db.profile.Data, db.profile.Version, time.Now().Unix())- if err := ioutil.WriteFile(backupDBFilePath, rawBytes, 0644); err != nil {+ if err := os.WriteFile(backupDBFilePath, rawBytes, 0644); err != nil {return fmt.Errorf("failed to write raw database file, err: %w", err)}diff --git a/store/db/table.go b/store/db/table.goindex 11460f574..dbe05b573 100644--- a/store/db/table.go+++ b/store/db/table.go@@ -12,6 +12,7 @@ type Table struct {}//lint:ignore U1000 Ignore unused function temporarily for debugging+//nolint:allfunc findTable(ctx context.Context, tx *sql.Tx, tableName string) (*Table, error) {where, args := []string{"1 = 1"}, []interface{}{}