generated from dave/wails-template
Default version to 0.0.0 without error
This commit is contained in:
3
utils.go
3
utils.go
@@ -1,7 +1,6 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -13,5 +12,5 @@ func GetVersion(data string) (version string, err error) {
|
|||||||
return version, nil
|
return version, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "", fmt.Errorf("no version found")
|
return "0.0.0", nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user