Skip to content

Commit

Permalink
style[DbWrapper]: add whitespaces after try
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucy Ciara Herud-Thomassen authored and Lucy Ciara Herud-Thomassen committed Apr 9, 2026
1 parent 1960fce commit bdd4854
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/edu/group5/app/model/wrapper/DbWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public boolean connect() {
*/
public boolean disconnect() {
// We are not interested in whether it fails to close, as we check its closed status later.
try{ this.connection.close(); } catch (Exception e) {};
try { this.connection.close(); } catch (Exception e) {};
try {
return this.connection.isClosed();
} catch (Exception e) {
Expand Down Expand Up @@ -100,7 +100,7 @@ private void close(ResultSet results, PreparedStatement ps) {
public List<Object[]> importUsers() {
PreparedStatement ps = null;
ResultSet results = null;
try{
try {
ps = this.connection.prepareStatement("SELECT * FROM users");
results = ps.executeQuery();
List<Object[]> data = new ArrayList<Object[]>();
Expand Down

0 comments on commit bdd4854

Please sign in to comment.