Skip to content

Commit

Permalink
fix warnings for unused local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Nov 19, 2023
1 parent 53ac6fa commit 56d5a3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/repo_routes.v
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ pub fn (mut app App) handle_new_repo(name string, clone_url string, description
app.error('The repository name is too long (should be fewer than ${max_repo_name_len} characters)')
return app.new()
}
if repo := app.find_repo_by_name_and_username(name, app.user.username) {
if _ := app.find_repo_by_name_and_username(name, app.user.username) {
app.error('A repository with the name "${name}" already exists')
return app.new()
}
Expand Down Expand Up @@ -260,7 +260,7 @@ pub fn (mut app App) handle_new_repo(name string, clone_url string, description
app.error('There was an error while adding the repo')
return app.new()
}
new_repo3 := app.find_repo_by_id(repo_id) or { return app.new() }
app.find_repo_by_id(repo_id) or { return app.new() }
// Update only cloned repositories
/*
if !is_clone_url_empty {
Expand Down

0 comments on commit 56d5a3b

Please sign in to comment.