Skip to content

Commit

Permalink
fix: add missing return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmelati committed Jul 29, 2024
1 parent dc47738 commit 5c6d82f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ class AccountRepository(database: Database) {
}

fun create(account: CreateAccountDTO) {
accountQueries.create(username = account.username)
return accountQueries.create(username = account.username)
}

fun findAll(): List<Account> {
return accountQueries.findAll().executeAsList()
}

fun delete(id: Int) {
accountQueries.delete(id)
return accountQueries.delete(id)
}

fun update(id: Int, account: Account) {
accountQueries.update(account.username, id)
return accountQueries.update(account.username, id)
}
}

0 comments on commit 5c6d82f

Please sign in to comment.