mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-10 12:56:24 -07:00
Fix anti-patterns pointed out by DeepSource
But not the switch fallthroughs/expression lists, there's no benefit
This commit is contained in:
parent
497a3925e0
commit
55317504a1
17 changed files with 53 additions and 67 deletions
|
@ -28,7 +28,7 @@ var (
|
|||
// If a version is found, execute the version check. Otherwise check for deprecated info
|
||||
// If no deprecated info is found, check if any databases exist prefixed with config.DBprefix
|
||||
// if no prefixed databases exist, assume this is a new installation
|
||||
func GetCompleteDatabaseVersion() (dbVersion int, dbFlag int, err error) {
|
||||
func GetCompleteDatabaseVersion() (dbVersion, dbFlag int, err error) {
|
||||
versionTableExists, err := doesTableExist("database_version")
|
||||
if err != nil {
|
||||
return 0, 0, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue