Explorar o código

fix ccm parsing commas

Chris Bannister %!s(int64=10) %!d(string=hai) anos
pai
achega
0ff057806d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ccm_test/ccm.go

+ 1 - 1
ccm_test/ccm.go

@@ -108,7 +108,7 @@ func Status() (map[string]Host, error) {
 			state = stateCommas
 		case stateCommas:
 			text := sc.Text()
-			if strings.HasPrefix(text, "-") {
+			if !strings.HasPrefix(text, "-") {
 				return nil, fmt.Errorf("expected commas got %q", text)
 			}
 			state = stateNode