Skip to content

Commit

Permalink
fix: update GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrarafer committed Dec 4, 2023
1 parent b85b2f9 commit 7b2ea8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
channel: 'stable'
- run: dart pub get
- name: Build app
run: dart compile exe -D POSTHOG_API_KEY="${{ secrets.POSTHOG_API_KEY }}" bin/stacked.dart
run: dart compile exe -D POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }} bin/stacked.dart
- name: release
uses: cycjimmy/semantic-release-action@v3
with:
Expand Down
4 changes: 1 addition & 3 deletions lib/src/services/posthog_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ class PosthogService {
'telemetry_config',
compactionStrategy: (entries, deletedEntries) => deletedEntries > 50,
);

_log.info(message: 'Initialized with Key:${_apiKey.substring(0, 2)}');
}

Future<void> _capture({
Expand All @@ -56,7 +54,7 @@ class PosthogService {
try {
if (!enabled) return;

if (_apiKey.isEmpty) throw PostHogApiKeyNotFoundException();
if (_apiKey.isEmpty) return;

final version = await _pubService.getCurrentVersion();

Expand Down

0 comments on commit 7b2ea8a

Please sign in to comment.