Skip to content

Refactor: use constants for success codes/messages#528

Merged
StuartFerguson merged 2 commits into
mainfrom
task/#419_transaction_service_refactor
Apr 6, 2026
Merged

Refactor: use constants for success codes/messages#528
StuartFerguson merged 2 commits into
mainfrom
task/#419_transaction_service_refactor

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

Replaced hardcoded "SUCCESS" and "0000" strings with constants in TrainingTransactionService for better maintainability and consistency. Also condensed object initializations to single lines for improved code clarity. No changes to service logic or behavior.

closes #419

Replaced hardcoded "SUCCESS" and "0000" strings with constants in TrainingTransactionService for better maintainability and consistency. Also condensed object initializations to single lines for improved code clarity. No changes to service logic or behavior.
@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Apr 6, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

@StuartFerguson StuartFerguson merged commit e98b77f into main Apr 6, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BestPractice] Define a constant instead of using this literal 'SUCCESS' 5 times.

1 participant