Skip to content

Commit

Permalink
fix: dart format for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorahman committed Jun 14, 2024
1 parent 9ba259e commit 7363c4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/src/server/handlers/get_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ class GetHandler {
};

final result = {
..._databaseRepository.getById(
adm ? 'adm_users' : 'users', idUser)
..._databaseRepository.getById(adm ? 'adm_users' : 'users', idUser)
};
result.remove('password');

Expand Down
3 changes: 1 addition & 2 deletions lib/src/server/json_rest_server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class JsonRestServer {
}

final serverHandler = cascadeServer.handler;

_httpServer = await serve(serverHandler, ip, port);
if (ip == '0.0.0.0') {
final networks =
Expand Down Expand Up @@ -112,5 +112,4 @@ class JsonRestServer {
await _httpServer.close(force: true);
_socketHandler.server.close();
}

}

0 comments on commit 7363c4d

Please sign in to comment.