mirror of
https://github.com/immich-app/immich.git
synced 2025-12-17 01:11:13 +03:00
chore: bump line length to 120 (#20191)
This commit is contained in:
@@ -9,8 +9,7 @@ class Throttler {
|
||||
Throttler({required this.interval});
|
||||
|
||||
T? run<T>(T Function() action) {
|
||||
if (_lastActionTime == null ||
|
||||
(DateTime.now().difference(_lastActionTime!) > interval)) {
|
||||
if (_lastActionTime == null || (DateTime.now().difference(_lastActionTime!) > interval)) {
|
||||
final response = action();
|
||||
_lastActionTime = DateTime.now();
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user