Fix variable shadowing in author detection
This commit is contained in:
@@ -130,7 +130,7 @@ Examples:
|
||||
// Get author from author flag, BD_ACTOR var, or system USER var
|
||||
author, _ := cmd.Flags().GetString("author")
|
||||
if author == "" {
|
||||
author := os.Getenv("BD_ACTOR")
|
||||
author = os.Getenv("BD_ACTOR")
|
||||
if author == "" {
|
||||
author = os.Getenv("USER")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user