mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
refactor: fix syntax errors
This commit is contained in:
+2
-5
@@ -147,14 +147,11 @@ func updateScript() {
|
|||||||
|
|
||||||
func swapper(exec_path string) {
|
func swapper(exec_path string) {
|
||||||
|
|
||||||
regExp regexp.MustCompile("cocommit-.+")
|
regExp := regexp.MustCompile("cocommit-.+")
|
||||||
if err != nil {
|
|
||||||
log.Fatal(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
var new_binary string
|
var new_binary string
|
||||||
|
|
||||||
err = filepath.Walk("./", func(path string, info os.FileInfo, err error) error {
|
err := filepath.Walk("./", func(path string, info os.FileInfo, err error) error {
|
||||||
if err == nil && regExp.MatchString(info.Name()) {
|
if err == nil && regExp.MatchString(info.Name()) {
|
||||||
new_binary = info.Name()
|
new_binary = info.Name()
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user