chore(web): sort imports (#27922)

* feat: sort imports

* fix: something?
This commit is contained in:
Jason Rasmussen
2026-04-21 14:51:38 -04:00
committed by GitHub
parent bb0872afef
commit a16d233a0c
178 changed files with 2802 additions and 2821 deletions
+9 -1
View File
@@ -281,11 +281,19 @@ class ServerApi {
/// Get product key
///
/// Retrieve information about whether the server currently has a product key registered.
Future<void> getServerLicense() async {
Future<UserLicense?> getServerLicense() async {
final response = await getServerLicenseWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserLicense',) as UserLicense;
}
return null;
}
/// Get statistics