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>
2021-11-14 10:11:49 +02:00
..
admin.go Fix bug on admin subcommand (#17533) 2021-11-07 11:11:27 +08:00
admin_auth_ldap.go Fix bug on admin subcommand (#17533) 2021-11-07 11:11:27 +08:00
admin_auth_ldap_test.go Fix bug on admin subcommand (#17533) 2021-11-07 11:11:27 +08:00
cert.go
cmd.go Fix bug on admin subcommand (#17533) 2021-11-07 11:11:27 +08:00
convert.go Fix bug on admin subcommand (#17533) 2021-11-07 11:11:27 +08:00
docs.go Fix offBy1 errors (#17606) 2021-11-14 10:11:49 +02:00
doctor.go Fix bug on admin subcommand (#17533) 2021-11-07 11:11:27 +08:00
dump.go Fix bug on admin subcommand (#17533) 2021-11-07 11:11:27 +08:00
dump_repo.go Fix bug on admin subcommand (#17533) 2021-11-07 11:11:27 +08:00
embedded.go
embedded_stub.go
generate.go
hook.go
hook_test.go
keys.go
mailer.go
manager.go
migrate.go Fix bug on admin subcommand (#17533) 2021-11-07 11:11:27 +08:00
migrate_storage.go Fix bug on admin subcommand (#17533) 2021-11-07 11:11:27 +08:00
restore_repo.go
serv.go
web.go
web_graceful.go
web_letsencrypt.go