Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #23 from profclems/deepsource-transform-e70e0e8e
Browse files Browse the repository at this point in the history
Format code with Go fmt
  • Loading branch information
profclems authored Jul 29, 2020
2 parents 746b419 + 5c64aa6 commit 3faa2fc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/glab/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,18 @@ func main() {
argLen := len(cmdArgs)

// Parse the arguments in a map
for i:=1; i < argLen; i++ {
for i := 1; i < argLen; i++ {
sp := strings.Split(strings.TrimLeft(cmdArgs[i], "-"), "=")
if len(sp) > 0 {
if len(sp) > 0 {
if len(sp) > 1 {
arr[sp[0]] = sp[1]
} else {
arr[sp[0]] = "true"
}
arrCmd[(i-1)] = sp[0]
arrCmd[(i - 1)] = sp[0]
}
}

// Execute Command
glab.Exec(cmd, arr, arrCmd)
}

0 comments on commit 3faa2fc

Please sign in to comment.