Fixing golint warnings
* Moving final return outside of if-else * Removing type declarations that Go can infer from values * Cleaning up some existing comments * Changing snake_case variables to camelCase
This commit is contained in:
		@ -196,7 +196,7 @@ func isEmpty(path string) (bool, error) {
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			return false, err
 | 
			
		||||
		}
 | 
			
		||||
		list, err := f.Readdir(-1)
 | 
			
		||||
		list, _ := f.Readdir(-1)
 | 
			
		||||
		// f.Close() - see bug fix above
 | 
			
		||||
		return len(list) == 0, nil
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
@ -24,7 +24,7 @@ import (
 | 
			
		||||
var cfgFile string
 | 
			
		||||
var userLicense string
 | 
			
		||||
 | 
			
		||||
// This represents the base command when called without any subcommands
 | 
			
		||||
// RootCmd represents the base command when called without any subcommands
 | 
			
		||||
var RootCmd = &cobra.Command{
 | 
			
		||||
	Use:   "cobra",
 | 
			
		||||
	Short: "A generator for Cobra based Applications",
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user