mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-27 20:36:29 -04:00
Simplify error handling syntax
This commit is contained in:
+1
-2
@@ -71,8 +71,7 @@ func launchRCWDProcess() []byte {
|
||||
if RetryPassword {
|
||||
for {
|
||||
password = global.GetPassword("RCW Password:")
|
||||
err := wrappers.RunSanityCheck(global.CfgDir+global.PathSeparator+"sanity.rcw", password)
|
||||
if err == nil {
|
||||
if err := wrappers.RunSanityCheck(global.CfgDir+global.PathSeparator+"sanity.rcw", password); err == nil {
|
||||
break
|
||||
}
|
||||
fmt.Println(back.AnsiError + "Incorrect password" + back.AnsiReset)
|
||||
|
||||
Reference in New Issue
Block a user