Skip to content

Commit

Permalink
Fixed sonar issues + updated readme.md file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Breno RdV committed Feb 11, 2024
1 parent 49bfc4f commit 4d71e01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Raccoon.Ninja.WForm.GlucoseIcon/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ public partial class MainForm : Form
private static partial int DestroyIcon(IntPtr handle);

// Wrapper method to call the P/Invoke method and convert the return value to bool
private static bool DestroyIconWrapper(IntPtr handle) {
if (DestroyIcon(handle) == 0) return true;
private static void DestroyIconWrapper(IntPtr handle) {
if (DestroyIcon(handle) == 0) return;

Logger.LogTrace("DestroyIcon failed with error code: {ErrorCode}", Marshal.GetLastWin32Error());
return false;
}

public MainForm()
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=brenordv_nightscout-companion-apps&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=brenordv_nightscout-companion-apps)
[![CGM Data Display App CI/CD Using Reusable Workflow](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-glucose-mon-app.yml/badge.svg)](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-glucose-mon-app.yml)
[![Data API Function App CI/CD Workflow Using Template](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-dataapi.yml/badge.svg)](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-dataapi.yml)
[![Data Transfer Function CI/CD Using Reusable Workflow](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-datatransfer.yml/badge.svg)](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-datatransfer.yml)
[![Data Transfer Function CI/CD Using Reusable Workflow](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-scheduledtasks.yml/badge.svg)](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-scheduledtasks.yml)

# Nightscout Companion Apps

Expand Down

0 comments on commit 4d71e01

Please sign in to comment.