You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/cmd
Gusted d2163df6a0
Fix offBy1 errors (#17606)
* Fix offBy1 errors

- Partially resolves #17596
- Resolve errors from go-critic `offBy1: Index() can return -1; maybe
you wanted to do Index()+1`.

* Match golang spec

* Remove comments

* Update migrations.go

* Apply suggestions from code review

Co-authored-by: delvh <dev.lh@web.de>

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years ago
..
admin.go Fix bug on admin subcommand (#17533) 3 years ago
admin_auth_ldap.go Fix bug on admin subcommand (#17533) 3 years ago
admin_auth_ldap_test.go Fix bug on admin subcommand (#17533) 3 years ago
cert.go Add golangci (#6418) 5 years ago
cmd.go Fix bug on admin subcommand (#17533) 3 years ago
convert.go Fix bug on admin subcommand (#17533) 3 years ago
docs.go Fix offBy1 errors (#17606) 3 years ago
doctor.go Fix bug on admin subcommand (#17533) 3 years ago
dump.go Fix bug on admin subcommand (#17533) 3 years ago
dump_repo.go Fix bug on admin subcommand (#17533) 3 years ago
embedded.go Add bundle download for repository (#14538) 3 years ago
embedded_stub.go Add bundle download for repository (#14538) 3 years ago
generate.go Add asymmetric JWT signing (#16010) 3 years ago
hook.go Add agit flow support in gitea (#14295) 3 years ago
hook_test.go Add agit flow support in gitea (#14295) 3 years ago
keys.go Second attempt at preventing zombies (#16326) 3 years ago
mailer.go Second attempt at preventing zombies (#16326) 3 years ago
manager.go Second attempt at preventing zombies (#16326) 3 years ago
migrate.go Fix bug on admin subcommand (#17533) 3 years ago
migrate_storage.go Fix bug on admin subcommand (#17533) 3 years ago
restore_repo.go Second attempt at preventing zombies (#16326) 3 years ago
serv.go Use a variable but a function for IsProd because of a slight performance increment (#17368) 3 years ago
web.go Simplify Gothic to use our session store instead of creating a different store (#17507) 3 years ago
web_graceful.go Move FCGI req.URL.Path fix-up to the FCGI listener (#15292) 3 years ago
web_letsencrypt.go Simplify Gothic to use our session store instead of creating a different store (#17507) 3 years ago