Skip to content

Commit

Permalink
Adds dart format to static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
martyfuhry committed Feb 19, 2024
1 parent ddae707 commit 779d37d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion mobile/lib/shared/providers/websocket.provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ class WebsocketNotifier extends StateNotifier<WebsocketState> {
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");
Expand Down

0 comments on commit 779d37d

Please sign in to comment.