Skip to content

fix: omit character deaths_truncated if false #464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 3, 2025

Conversation

tobiasehlert
Copy link
Member

This pull request includes a minor change to the src/TibiaCharactersCharacter.go file. The change involves modifying the DeathsTruncated field in the Character struct to be optional in the JSON output.

  • src/TibiaCharactersCharacter.go: Changed the DeathsTruncated field in the Character struct to include the omitempty tag, making it optional in the JSON output.

@tobiasehlert tobiasehlert added the go Pull requests that update Go code label Apr 1, 2025
@tobiasehlert tobiasehlert self-assigned this Apr 1, 2025
Copy link

sonarqubecloud bot commented Apr 1, 2025

Copy link

codecov bot commented Apr 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.29%. Comparing base (1aedf92) to head (4cd7517).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #464   +/-   ##
=======================================
  Coverage   80.29%   80.29%           
=======================================
  Files          22       22           
  Lines        3694     3694           
=======================================
  Hits         2966     2966           
  Misses        587      587           
  Partials      141      141           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tobiasehlert tobiasehlert requested a review from Copilot April 3, 2025 18:49
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request aims to omit the "deaths_truncated" field from the JSON output when it is false by adding the "omitempty" tag.

  • Modified the JSON tag for DeathsTruncated in the Character struct
  • Ensures that the field is only included when its value is true

@tobiasehlert tobiasehlert merged commit 87edfbe into main Apr 3, 2025
8 checks passed
@tobiasehlert tobiasehlert deleted the fix-omit-character-deaths_truncated-if-false branch April 3, 2025 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code
Development

Successfully merging this pull request may close these issues.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy