refactor: refactoring of code to meet all golangci-lint requirements
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// Package cmd /
|
||||
/*****
|
||||
/*
|
||||
****
|
||||
@author Jonas Kaninda
|
||||
@license MIT License <https://opensource.org/licenses/MIT>
|
||||
@Copyright © 2024 Jonas Kaninda
|
||||
@@ -8,7 +9,7 @@ package cmd
|
||||
|
||||
import (
|
||||
"github.com/jkaninda/pg-bkup/internal"
|
||||
"github.com/jkaninda/pg-bkup/utils"
|
||||
"github.com/jkaninda/pg-bkup/pkg/logger"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
@@ -19,7 +20,7 @@ var MigrateCmd = &cobra.Command{
|
||||
if len(args) == 0 {
|
||||
internal.StartMigration(cmd)
|
||||
} else {
|
||||
utils.Fatal(`"migrate" accepts no argument %q`, args)
|
||||
logger.Fatal(`"migrate" accepts no argument %q`, args)
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user