You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2019/12/18 00:04:43 UTC
[mynewt-newt] 01/05: gofmt
This is an automated email from the ASF dual-hosted git repository.
ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git
commit d2e4a83137d4e3fb6b8606ce883bf141187d15f5
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Thu Nov 7 10:07:49 2019 -0800
gofmt
---
newt/syscfg/syscfg.go | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/newt/syscfg/syscfg.go b/newt/syscfg/syscfg.go
index 41c1c87..ec07c4f 100644
--- a/newt/syscfg/syscfg.go
+++ b/newt/syscfg/syscfg.go
@@ -484,20 +484,20 @@ func readSetting(name string, lpkg *pkg.LocalPackage,
for i, choice := range choices {
if !cfgChoiceValRe.MatchString(choice) {
return entry, util.FmtNewtError(
- "setting %s has invalid choice defined (%s) - " +
+ "setting %s has invalid choice defined (%s) - "+
"only letters, numbers and underscore are allowed", name, choice)
}
- if i > 0 && strings.ToLower(choices[i - 1]) == strings.ToLower(choice) {
+ if i > 0 && strings.ToLower(choices[i-1]) == strings.ToLower(choice) {
return entry, util.FmtNewtError(
"setting %s has duplicated choice defined ('%s' and '%s')",
- name, choice, choices[i - 1])
+ name, choice, choices[i-1])
}
}
r := CfgRestriction{
BaseSetting: name,
- Code: CFG_RESTRICTION_CODE_CHOICE,
+ Code: CFG_RESTRICTION_CODE_CHOICE,
}
entry.Restrictions = append(entry.Restrictions, r)