This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
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 Add golangci (#6418) 2019-06-12 15:41:28 -04:00
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 Add bundle download for repository (#14538) 2021-08-24 11:47:09 -05:00
embedded_stub.go Add bundle download for repository (#14538) 2021-08-24 11:47:09 -05:00
generate.go Add asymmetric JWT signing (#16010) 2021-06-17 23:56:46 +02:00
hook.go Add agit flow support in gitea (#14295) 2021-07-28 17:42:56 +08:00
hook_test.go Add agit flow support in gitea (#14295) 2021-07-28 17:42:56 +08:00
keys.go Second attempt at preventing zombies (#16326) 2021-07-14 10:43:13 -04:00
mailer.go Second attempt at preventing zombies (#16326) 2021-07-14 10:43:13 -04:00
manager.go Second attempt at preventing zombies (#16326) 2021-07-14 10:43:13 -04:00
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 Second attempt at preventing zombies (#16326) 2021-07-14 10:43:13 -04:00
serv.go Use a variable but a function for IsProd because of a slight performance increment (#17368) 2021-10-20 16:37:19 +02:00
web.go Simplify Gothic to use our session store instead of creating a different store (#17507) 2021-11-03 08:33:54 +08:00
web_graceful.go Move FCGI req.URL.Path fix-up to the FCGI listener (#15292) 2021-04-09 21:17:57 +08:00
web_letsencrypt.go Simplify Gothic to use our session store instead of creating a different store (#17507) 2021-11-03 08:33:54 +08:00