I have written go code which has a for loop, code is given below. but when i build the code i get 'continue is not within loop'. i can't understand why this is happening. Kindly help
Go Version:
go version go1.7.5 linux/amd64
Complete Code at the below link https://pastebin.com/0ZypMYVK
for k:=0;k < len(args);k++{
fmt.Println("k is ", k)
hsCode := args[k]
lenChk:=checkHashLen(hsCode)
if lenChk==false {
fmt.Println("Length should be 32" )
continue
}
codeBytes,_ := json.Marshal(hsCode)
APIstub.PutState(strconv.FormatInt(makeTimestamp(),10), codeBytes)
fmt.Println("Added: ", k)
}
./hashcode.go:88: continue is not in a loop