Skip to content

Commit

Permalink
Fix lint issues with pebble and sqlite3
Browse files Browse the repository at this point in the history
  • Loading branch information
gaby authored Nov 16, 2023
1 parent 748f85b commit 30da736
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 2 additions & 7 deletions pebble/pebble.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,6 @@ func isValid(fp string) bool {
return false
}

err = os.Remove(fp) // And delete it

if err != nil {
return false
}

return true
err = os.Remove(fp)
return err == nil
}
2 changes: 0 additions & 2 deletions sqlite3/sqlite3.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ type Storage struct {
}

var (
checkSchemaMsg = "The `v` row has an incorrect data type. " +
"It should be BLOB but is instead %s. This will cause encoding-related panics if the DB is not migrated (see https://github.com/gofiber/storage/blob/main/MIGRATE.md)."
dropQuery = `DROP TABLE IF EXISTS %s;`
initQuery = []string{
`CREATE TABLE IF NOT EXISTS %s (
Expand Down

0 comments on commit 30da736

Please sign in to comment.