Shrink code lines and reduce code cyclomatic complexity (#8748)
Shrink code lines and reduce code cyclomatic complexity (#8748)

code cleanup in anetGenericAccept
neomantra/redis,neomantra/redis,charsyam/redis,yossigo/redis,soloestoy/redis,ofirluzon/redis,PKRoma/redis,oranagra/redis,ofirluzon/redis,yossigo/redis,antirez/redis,ofirluzon/redis,yossigo/redis,ofirluzon/redis,soloestoy/redis,PKRoma/redis,oranagra/redis,ofirluzon/redis,yossigo/redis,oranagra/redis,yossigo/redis,charsyam/redis,soloestoy/redis,PKRoma/redis,charsyam/redis,PKRoma/redis,charsyam/redis,antirez/redis,antirez/redis,soloestoy/redis,antirez/redis,neomantra/redis,neomantra/redis,oranagra/redis,soloestoy/redis,oranagra/redis,charsyam/redis,PKRoma/redis,neomantra/redis