Skip to content

Commit 3618405

Browse files
committed
fix format
1 parent 64fd692 commit 3618405

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/formatter.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
on:
22
push:
3-
# branches: ["*"]
4-
# pull_request:
5-
# branches: ["*"]
3+
pull_request:
64

75
name: Format Code
86

@@ -15,6 +13,12 @@ jobs:
1513
uses: actions/checkout@v2
1614
- name: Set up Flutter
1715
uses: subosito/flutter-action@v1
18-
- run: |
19-
dart format --line-length 110 --set-exit-if-changed \
16+
- name: Format code
17+
run: |
18+
dart format --line-length 110 \
2019
$(find lib test -name '*.dart' -not -name '*.g.dart' -and -not -name '*.freezed.dart')
20+
- name: Commit changes
21+
uses: stefanzweifel/git-auto-commit-action@v5
22+
with:
23+
commit_message: "dart format ✅"
24+
branch: ${{ github.head_ref }}

lib/src/contrib/aruco_dict.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ class ArucoDictionary extends CvStruct<cvg.ArucoDictionary> {
9595

9696
@override
9797
cvg.ArucoDictionary get ref => ptr.ref;
98-
static final finalizer =
99-
OcvFinalizer<cvg.ArucoDictionaryPtr>(CFFI.addresses.ArucoDictionary_Close);
98+
static final finalizer = OcvFinalizer<cvg.ArucoDictionaryPtr>(CFFI.addresses.ArucoDictionary_Close);
10099

101100
void dispose() {
102101
finalizer.detach(this);

0 commit comments

Comments
 (0)