mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 23:08:59 +00:00
[compass_app] Standardize on Result factories rather than constructors (#2538)
From my review of the recipes PR in https://github.com/flutter/website/pull/11444#pullrequestreview-2480423811.
This commit is contained in:
@@ -32,7 +32,7 @@ class SharedPreferencesService {
|
||||
_log.finer('Replaced token');
|
||||
await sharedPreferences.setString(_tokenKey, token);
|
||||
}
|
||||
return Result.ok(null);
|
||||
return const Result.ok(null);
|
||||
} on Exception catch (e) {
|
||||
_log.warning('Failed to set token', e);
|
||||
return Result.error(e);
|
||||
|
||||
Reference in New Issue
Block a user