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