1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-25 13:19:37 -05:00
forgejo/routers
Nick e1aca7cbdd
Deduplicate findReadmeFile() (#22177)
This code was copy-pasted at some point. Revisit it to reunify it.

~~Doing that then encouraged simplifying the types of a couple of
related functions.~~

~~As a follow-up, move two helper functions, `isReadmeFile()` and
`isReadmeFileExtension()`, intimately tied to `findReadmeFile()`, in as
package-private.~~

Signed-off-by: Nick Guenther <nick.guenther@polymtl.ca>
2023-02-12 15:08:10 +08:00
..
api Add /$count endpoints for NuGet v2 (#22855) 2023-02-11 19:30:44 +08:00
common Support disabling database auto migration (#22053) 2022-12-07 09:58:31 -06:00
install fix: update settings table on install (#22326) 2023-01-03 14:33:41 -06:00
private Implement actions (#21937) 2023-01-31 09:45:19 +08:00
utils Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web Deduplicate findReadmeFile() (#22177) 2023-02-12 15:08:10 +08:00
init.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00