goexpect icon indicating copy to clipboard operation
goexpect copied to clipboard

Useless break statement

Open QiAnXinCodeSafe opened this issue 6 years ago • 1 comments

https://github.com/google/goexpect/blob/c416f18ae5af08f6c8e6b116ab427441cc67a593/expect.go#L1262-L1264

The switch case block does not require break. If break for loop, you need a label.

QiAnXinCodeSafe avatar Aug 22 '19 09:08 QiAnXinCodeSafe

https://github.com/google/goexpect/pull/67

ryandgoulding avatar Apr 28 '21 19:04 ryandgoulding