mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 06:40:34 +08:00
more linting fixes
This commit is contained in:
parent
41d786a13c
commit
58eee64326
@ -1 +0,0 @@
|
|||||||
package cmd
|
|
@ -41,14 +41,15 @@ Create your first project by running 'wails init'.`
|
|||||||
|
|
||||||
// Check we have a cgo capable environment
|
// Check we have a cgo capable environment
|
||||||
logger.Yellow("Checking for prerequisites...")
|
logger.Yellow("Checking for prerequisites...")
|
||||||
var errors bool
|
var requiredProgramErrors bool
|
||||||
errors, err = checkRequiredPrograms()
|
requiredProgramErrors, err = checkRequiredPrograms()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Linux has library deps
|
// Linux has library deps
|
||||||
errors, err = checkLibraries()
|
var libraryErrors bool
|
||||||
|
libraryErrors, err = checkLibraries()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -61,6 +62,8 @@ Create your first project by running 'wails init'.`
|
|||||||
|
|
||||||
logger.White("")
|
logger.White("")
|
||||||
|
|
||||||
|
// Check for errors
|
||||||
|
var errors = libraryErrors || requiredProgramErrors
|
||||||
if !errors {
|
if !errors {
|
||||||
logger.Yellow(successMessage)
|
logger.Yellow(successMessage)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user