Skip to content

Commit 56d5a3b

Browse files
committed
fix warnings for unused local variables
1 parent 53ac6fa commit 56d5a3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/repo_routes.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ pub fn (mut app App) handle_new_repo(name string, clone_url string, description
199199
app.error('The repository name is too long (should be fewer than ${max_repo_name_len} characters)')
200200
return app.new()
201201
}
202-
if repo := app.find_repo_by_name_and_username(name, app.user.username) {
202+
if _ := app.find_repo_by_name_and_username(name, app.user.username) {
203203
app.error('A repository with the name "${name}" already exists')
204204
return app.new()
205205
}
@@ -260,7 +260,7 @@ pub fn (mut app App) handle_new_repo(name string, clone_url string, description
260260
app.error('There was an error while adding the repo')
261261
return app.new()
262262
}
263-
new_repo3 := app.find_repo_by_id(repo_id) or { return app.new() }
263+
app.find_repo_by_id(repo_id) or { return app.new() }
264264
// Update only cloned repositories
265265
/*
266266
if !is_clone_url_empty {

0 commit comments

Comments
 (0)