5
0
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:
Lea Anthony 2019-04-11 08:26:57 +10:00
parent 41d786a13c
commit 58eee64326
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405
3 changed files with 29 additions and 27 deletions

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
package cmd

View File

@ -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)
}