Procházet zdrojové kódy

fix ccm parsing commas

Chris Bannister před 10 roky
rodič
revize
0ff057806d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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