Skip to content
Snippets Groups Projects
Unverified Commit c07265a4 authored by deepsource-autofix[bot]'s avatar deepsource-autofix[bot] Committed by GitHub
Browse files

Fix check for empty string (#48)

parent 65f870f8
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ func runAfterUpdates(tx *sqlx.Tx, afterDone map[string]bool) error {
}
func updateCallback(tx *sqlx.Tx, cmds, version string, done map[string]bool, dbUpdateCallback func(*sqlx.Tx, string) error) error {
log.WithField("version", version).Info("Updating DB to version")
if len(cmds) == 0 {
if cmds == "" {
return nil
}
if done[version] {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment