autofix: fix nested `if` with `else if` (#6807)
autofix: fix nested `if` with `else if` (#6807)

Co-authored-by: deepsource-autofix[bot] <1de305037f5ff3d92a5ca2b5d43710794cac9969@users.noreply.github.com>
chriswatt/gogs,gogits/gogs,chriswatt/gogs,gogits/gogs,gogits/gogs,chriswatt/gogs