]> source.dussan.org Git - gitea.git/commit
Remove unnecassary calls to `filepath.Join` (#17608)
authorGusted <williamzijl7@hotmail.com>
Mon, 15 Nov 2021 06:02:53 +0000 (06:02 +0000)
committerGitHub <noreply@github.com>
Mon, 15 Nov 2021 06:02:53 +0000 (14:02 +0800)
commit253d9e415813e90543cca8d94112c9e4238d39a4
treec60e0dc33e437dfbd4855b9c0b5939351451720f
parent562785ef4ea8ea4b24da726a4fbf515358ee7084
Remove unnecassary calls to `filepath.Join` (#17608)

- Partialy resolvess #17596
- Resolves `badCall` errors from go-critic `badCall: suspicious Join on
1 argument`
- When only 1 argument is passed into `filepath.Join`, it won't do
anything special other than `filepath.Clean(...)` will be applied over
it.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
modules/repository/adopt.go
routers/web/user/setting/adopt.go
routers/web/user/setting/profile.go
services/pull/merge.go