From dd537959530ec6d88899e51a4018e588f0d8ff56 Mon Sep 17 00:00:00 2001 From: martyfuhry Date: Sun, 18 Feb 2024 23:30:24 -0500 Subject: [PATCH] chore(mobile): Adds dart format to static analysis (#7193) Adds dart format to static analysis --- .github/workflows/static_analysis.yml | 6 +++++- mobile/lib/shared/providers/websocket.provider.dart | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) 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");