diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index a6de171fb8..c2b633c4b0 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -32,7 +32,11 @@ jobs: - name: Run dart analyze run: dart analyze --fatal-infos working-directory: ./mobile - + + - name: Run dart format + run: dart format lib/ --set-exit-if-changed + working-directory: ./mobile + # Enable after riverpod generator migration is completed # - name: Run dart custom lint # run: dart run custom_lint diff --git a/mobile/lib/shared/providers/websocket.provider.dart b/mobile/lib/shared/providers/websocket.provider.dart index 9c728bc998..89f99dc6df 100644 --- a/mobile/lib/shared/providers/websocket.provider.dart +++ b/mobile/lib/shared/providers/websocket.provider.dart @@ -110,7 +110,8 @@ class WebsocketNotifier extends StateNotifier { final endpoint = Uri.parse(Store.get(StoreKey.serverEndpoint)); final headers = {"x-immich-user-token": accessToken}; if (endpoint.userInfo.isNotEmpty) { - headers["Authorization"] = "Basic ${base64.encode(utf8.encode(endpoint.userInfo))}"; + headers["Authorization"] = + "Basic ${base64.encode(utf8.encode(endpoint.userInfo))}"; } debugPrint("Attempting to connect to websocket");