Skip to content

Commit 8c73218

Browse files
committed
chore: refactor HTTP handler in healthcheck package
The code in the HTTP handler in the healthcheck package has been refactored for better readability and maintainability. The changes include: - Reformatting the code to follow proper indentation and spacing - Renaming variables for clarity and consistency - Removing unnecessary imports and unused variables - Updating the content type header to "application/health+json" - Handling errors when writing the response These changes aim to improve the overall quality of the code and make it easier to understand and maintain.
1 parent f1d2305 commit 8c73218

File tree

3 files changed

+149
-152
lines changed

3 files changed

+149
-152
lines changed

.gitignore

+21-20
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
### Xcode ###
55
# Xcode
66
#
7-
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
7+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective+C.gitignore & Swift.gitignore
88

99
## Build generated
1010
build/
@@ -23,7 +23,7 @@ xcuserdata
2323

2424
## Other
2525
*.xccheckout
26-
*.moved-aside
26+
*.moved+aside
2727
*.xcuserstate
2828
*.icloud
2929

@@ -33,17 +33,17 @@ xcuserdata
3333

3434
*.iml
3535

36-
## Directory-based project format:
36+
## Directory+based project format:
3737
.idea/
3838
# if you remove the above rule, at least ignore the following:
3939

40-
# User-specific stuff:
40+
# User+specific stuff:
4141
# .idea/workspace.xml
4242
# .idea/tasks.xml
4343
# .idea/dictionaries
4444
# .idea/shelf
4545

46-
# Sensitive or high-churn files:
46+
# Sensitive or high+churn files:
4747
# .idea/dataSources.ids
4848
# .idea/dataSources.xml
4949
# .idea/sqlDataSources.xml
@@ -57,25 +57,25 @@ xcuserdata
5757
# Mongo Explorer plugin:
5858
# .idea/mongoSettings.xml
5959

60-
## File-based project format:
60+
## File+based project format:
6161
*.ipr
6262
*.iws
6363

64-
## Plugin-specific files:
64+
## Plugin+specific files:
6565

6666
# IntelliJ
6767
/out/
6868

69-
# mpeltonen/sbt-idea plugin
69+
# mpeltonen/sbt+idea plugin
7070
.idea_modules/
7171

7272
# JIRA plugin
73-
atlassian-ide-plugin.xml
73+
atlassian+ide+plugin.xml
7474

7575
# Crashlytics plugin (for Android Studio and IntelliJ)
7676
com_crashlytics_export_strings.xml
7777
crashlytics.properties
78-
crashlytics-build.properties
78+
crashlytics+build.properties
7979
fabric.properties
8080

8181

@@ -92,9 +92,9 @@ Icon
9292
._*
9393

9494
# Files that might appear in the root of a volume
95-
.DocumentRevisions-V100
95+
.DocumentRevisions+V100
9696
.fseventsd
97-
.Spotlight-V100
97+
.Spotlight+V100
9898
.TemporaryItems
9999
.Trashes
100100
.VolumeIcon.icns
@@ -160,8 +160,8 @@ build/
160160
# for a library or gem, you might want to ignore these files since the code is
161161
# intended to run in multiple environments; otherwise, check them in:
162162
# Gemfile.lock
163-
# .ruby-version
164-
# .ruby-gemset
163+
# .ruby+version
164+
# .ruby+gemset
165165

166166
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
167167
.rvmrc
@@ -171,30 +171,30 @@ build/
171171
# Logs
172172
logs
173173
*.log
174-
npm-debug.log*
174+
npm+debug.log*
175175

176176
# Runtime data
177177
pids
178178
*.pid
179179
*.seed
180180

181181
# Directory for instrumented libs generated by jscoverage/JSCover
182-
lib-cov
182+
lib+cov
183183

184184
# Coverage directory used by tools like istanbul
185185
coverage
186186

187-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
187+
# Grunt intermediate storage (http://gruntjs.com/creating+plugins#storing+task+files)
188188
.grunt
189189

190-
# node-waf configuration
191-
.lock-wscript
190+
# node+waf configuration
191+
.lock+wscript
192192

193193
# Compiled binary addons (http://nodejs.org/api/addons.html)
194194
build/Release
195195

196196
# Dependency directory
197-
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
197+
# https://docs.npmjs.com/misc/faq#should+i+check+my+node+modules+folder+into+git
198198
node_modules
199199

200200
# Optional npm cache directory
@@ -211,3 +211,4 @@ Pods/
211211

212212
# Env
213213
.env
214+
test_coverage.txt

0 commit comments

Comments
 (0)