subcommands/install.go
Function Install
has 5 return statements (exceeds 4 allowed). Open
Open
func Install(gitFolderPath string) error {
var forceOverwrite bool
flagSet := flag.NewFlagSet("git-hook-commit install", flag.ContinueOnError)
flagSet.BoolVar(&forceOverwrite, "f", false, `force file creation by overwriting`)
err := flagSet.Parse(os.Args[2:])