Skip to content

Commit 7b2ea8a

Browse files
committed
fix: update GitHub workflow
1 parent b85b2f9 commit 7b2ea8a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
channel: 'stable'
2020
- run: dart pub get
2121
- name: Build app
22-
run: dart compile exe -D POSTHOG_API_KEY="${{ secrets.POSTHOG_API_KEY }}" bin/stacked.dart
22+
run: dart compile exe -D POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }} bin/stacked.dart
2323
- name: release
2424
uses: cycjimmy/semantic-release-action@v3
2525
with:

lib/src/services/posthog_service.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ class PosthogService {
4545
'telemetry_config',
4646
compactionStrategy: (entries, deletedEntries) => deletedEntries > 50,
4747
);
48-
49-
_log.info(message: 'Initialized with Key:${_apiKey.substring(0, 2)}');
5048
}
5149

5250
Future<void> _capture({
@@ -56,7 +54,7 @@ class PosthogService {
5654
try {
5755
if (!enabled) return;
5856

59-
if (_apiKey.isEmpty) throw PostHogApiKeyNotFoundException();
57+
if (_apiKey.isEmpty) return;
6058

6159
final version = await _pubService.getCurrentVersion();
6260

0 commit comments

Comments
 (0)