mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-06-12 20:00:02 +02:00
delete with subpath: Forgot lint (as usual)
This commit is contained in:
parent
240c167612
commit
d91dfc803f
3 changed files with 57 additions and 64 deletions
|
@ -104,7 +104,7 @@ func (repo *Repository) LsFiles(filenames ...string) ([]string, error) {
|
|||
}
|
||||
|
||||
// Gives a list of all files in a directory and below
|
||||
func (repo *Repository) LsFilesFromDirectory(directory string, branch string) ([]string, error) {
|
||||
func (repo *Repository) LsFilesFromDirectory(directory, branch string) ([]string, error) {
|
||||
if branch == "" {
|
||||
return nil, errors.New("branch not found in context URL")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue