Skip to content

Commit c8ac300

Browse files
committed
chore: remove redundant words in comment
Signed-off-by: linchizhen <[email protected]>
1 parent 5188829 commit c8ac300

25 files changed

+38
-38
lines changed

Diff for: addons/graffiti_wall_writer/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (cfg *GraffitiWallWriterConfig) GetParameters() []*config.Parameter {
127127
}
128128
}
129129

130-
// The the title for the config
130+
// The title for the config
131131
func (cfg *GraffitiWallWriterConfig) GetConfigTitle() string {
132132
return cfg.Title
133133
}

Diff for: addons/rescue_node/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (cfg *RescueNodeConfig) GetParameters() []*config.Parameter {
6262
}
6363
}
6464

65-
// The the title for the config
65+
// The title for the config
6666
func (cfg *RescueNodeConfig) GetConfigTitle() string {
6767
return cfg.Title
6868
}

Diff for: shared/services/config/besu-params.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func (cfg *BesuConfig) GetParameters() []*config.Parameter {
146146
}
147147
}
148148

149-
// The the title for the config
149+
// The title for the config
150150
func (cfg *BesuConfig) GetConfigTitle() string {
151151
return cfg.Title
152152
}

Diff for: shared/services/config/bitfly-beaconchain-config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (cfg *BitflyNodeMetricsConfig) GetParameters() []*config.Parameter {
7373
}
7474
}
7575

76-
// The the title for the config
76+
// The title for the config
7777
func (cfg *BitflyNodeMetricsConfig) GetConfigTitle() string {
7878
return cfg.Title
7979
}

Diff for: shared/services/config/consensus-common-config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func (cfg *ConsensusCommonConfig) GetParameters() []*config.Parameter {
151151
}
152152
}
153153

154-
// The the title for the config
154+
// The title for the config
155155
func (cfg *ConsensusCommonConfig) GetConfigTitle() string {
156156
return cfg.Title
157157
}

Diff for: shared/services/config/execution-common-config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func (cfg *ExecutionCommonConfig) GetParameters() []*config.Parameter {
161161
}
162162
}
163163

164-
// The the title for the config
164+
// The title for the config
165165
func (cfg *ExecutionCommonConfig) GetConfigTitle() string {
166166
return cfg.Title
167167
}

Diff for: shared/services/config/exporter-config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (cfg *ExporterConfig) GetParameters() []*config.Parameter {
7373
}
7474
}
7575

76-
// The the title for the config
76+
// The title for the config
7777
func (cfg *ExporterConfig) GetConfigTitle() string {
7878
return cfg.Title
7979
}

Diff for: shared/services/config/external-configs.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -663,32 +663,32 @@ func (cfg *ExternalTekuConfig) GetName() string {
663663
return "Teku"
664664
}
665665

666-
// The the title for the config
666+
// The title for the config
667667
func (cfg *ExternalExecutionConfig) GetConfigTitle() string {
668668
return cfg.Title
669669
}
670670

671-
// The the title for the config
671+
// The title for the config
672672
func (cfg *ExternalLighthouseConfig) GetConfigTitle() string {
673673
return cfg.Title
674674
}
675675

676-
// The the title for the config
676+
// The title for the config
677677
func (cfg *ExternalLodestarConfig) GetConfigTitle() string {
678678
return cfg.Title
679679
}
680680

681-
// The the title for the config
681+
// The title for the config
682682
func (cfg *ExternalNimbusConfig) GetConfigTitle() string {
683683
return cfg.Title
684684
}
685685

686-
// The the title for the config
686+
// The title for the config
687687
func (cfg *ExternalPrysmConfig) GetConfigTitle() string {
688688
return cfg.Title
689689
}
690690

691-
// The the title for the config
691+
// The title for the config
692692
func (cfg *ExternalTekuConfig) GetConfigTitle() string {
693693
return cfg.Title
694694
}

Diff for: shared/services/config/fallback-configs.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ func (cfg *FallbackPrysmConfig) GetParameters() []*config.Parameter {
115115
}
116116
}
117117

118-
// The the title for the config
118+
// The title for the config
119119
func (config *FallbackNormalConfig) GetConfigTitle() string {
120120
return config.Title
121121
}
122122

123-
// The the title for the config
123+
// The title for the config
124124
func (config *FallbackPrysmConfig) GetConfigTitle() string {
125125
return config.Title
126126
}

Diff for: shared/services/config/geth-params.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func (cfg *GethConfig) GetParameters() []*config.Parameter {
140140
}
141141
}
142142

143-
// The the title for the config
143+
// The title for the config
144144
func (cfg *GethConfig) GetConfigTitle() string {
145145
return cfg.Title
146146
}

Diff for: shared/services/config/grafana-config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (cfg *GrafanaConfig) GetParameters() []*config.Parameter {
5858
}
5959
}
6060

61-
// The the title for the config
61+
// The title for the config
6262
func (cfg *GrafanaConfig) GetConfigTitle() string {
6363
return cfg.Title
6464
}

Diff for: shared/services/config/lighthouse-config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func (cfg *LighthouseConfig) GetName() string {
129129
return "Lighthouse"
130130
}
131131

132-
// The the title for the config
132+
// The title for the config
133133
func (cfg *LighthouseConfig) GetConfigTitle() string {
134134
return cfg.Title
135135
}

Diff for: shared/services/config/lodestar-config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func (cfg *LodestarConfig) GetName() string {
115115
return "Lodestar"
116116
}
117117

118-
// The the title for the config
118+
// The title for the config
119119
func (cfg *LodestarConfig) GetConfigTitle() string {
120120
return cfg.Title
121121
}

Diff for: shared/services/config/native-config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func getDefaultValidatorStopCommand(config *RocketPoolConfig) string {
130130
return filepath.Join(config.RocketPoolDirectory, "stop-validator.sh")
131131
}
132132

133-
// The the title for the config
133+
// The title for the config
134134
func (cfg *NativeConfig) GetConfigTitle() string {
135135
return cfg.Title
136136
}

Diff for: shared/services/config/nethermind-params.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ func (cfg *NethermindConfig) GetParameters() []*config.Parameter {
277277
}
278278
}
279279

280-
// The the title for the config
280+
// The title for the config
281281
func (cfg *NethermindConfig) GetConfigTitle() string {
282282
return cfg.Title
283283
}

Diff for: shared/services/config/nimbus-config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func (cfg *NimbusConfig) GetName() string {
167167
return "Nimbus"
168168
}
169169

170-
// The the title for the config
170+
// The title for the config
171171
func (cfg *NimbusConfig) GetConfigTitle() string {
172172
return cfg.Title
173173
}

Diff for: shared/services/config/prometheus-config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func (cfg *PrometheusConfig) GetParameters() []*config.Parameter {
9191
}
9292
}
9393

94-
// The the title for the config
94+
// The title for the config
9595
func (cfg *PrometheusConfig) GetConfigTitle() string {
9696
return cfg.Title
9797
}

Diff for: shared/services/config/prysm-config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func (cfg *PrysmConfig) GetName() string {
188188
return "Prysm"
189189
}
190190

191-
// The the title for the config
191+
// The title for the config
192192
func (cfg *PrysmConfig) GetConfigTitle() string {
193193
return cfg.Title
194194
}

Diff for: shared/services/config/reth-params.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func (cfg *RethConfig) GetParameters() []*config.Parameter {
177177
}
178178
}
179179

180-
// The the title for the config
180+
// The title for the config
181181
func (cfg *RethConfig) GetConfigTitle() string {
182182
return cfg.Title
183183
}

Diff for: shared/services/config/rocket-pool-config.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ func (cfg *RocketPoolConfig) CustomGraffiti() (string, error) {
10021002
}
10031003

10041004
// Used by text/template to format validator.yml
1005-
// Only returns the the prefix
1005+
// Only returns The prefix
10061006
func (cfg *RocketPoolConfig) GraffitiPrefix() string {
10071007
// Graffiti
10081008
identifier := ""
@@ -1373,7 +1373,7 @@ func (cfg *RocketPoolConfig) GetMevBoostOpenPorts() string {
13731373
return fmt.Sprintf("\"%s\"", portMode.DockerPortMapping(port))
13741374
}
13751375

1376-
// The the title for the config
1376+
// The title for the config
13771377
func (cfg *RocketPoolConfig) GetConfigTitle() string {
13781378
return cfg.Title
13791379
}

Diff for: shared/services/config/smartnode-config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ func (config *SmartnodeConfig) GetSnapshotID() string {
774774
return SnapshotID
775775
}
776776

777-
// The the title for the config
777+
// The title for the config
778778
func (cfg *SmartnodeConfig) GetConfigTitle() string {
779779
return cfg.Title
780780
}

Diff for: shared/services/config/teku-config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func (cfg *TekuConfig) GetName() string {
172172
return "Teku"
173173
}
174174

175-
// The the title for the config
175+
// The title for the config
176176
func (cfg *TekuConfig) GetConfigTitle() string {
177177
return cfg.Title
178178
}

Diff for: shared/services/rewards/rewards-file-v1.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -203,22 +203,22 @@ func (f *RewardsFile_v1) GetTotalNodeOperatorSmoothingPoolEth() *big.Int {
203203
return &f.RewardsFileHeader.TotalRewards.NodeOperatorSmoothingPoolEth.Int
204204
}
205205

206-
// Get the the execution start block
206+
// Get The execution start block
207207
func (f *RewardsFile_v1) GetExecutionStartBlock() uint64 {
208208
return f.RewardsFileHeader.ExecutionStartBlock
209209
}
210210

211-
// Get the the consensus start block
211+
// Get The consensus start block
212212
func (f *RewardsFile_v1) GetConsensusStartBlock() uint64 {
213213
return f.RewardsFileHeader.ConsensusStartBlock
214214
}
215215

216-
// Get the the execution end block
216+
// Get The execution end block
217217
func (f *RewardsFile_v1) GetExecutionEndBlock() uint64 {
218218
return f.RewardsFileHeader.ExecutionEndBlock
219219
}
220220

221-
// Get the the consensus end block
221+
// Get The consensus end block
222222
func (f *RewardsFile_v1) GetConsensusEndBlock() uint64 {
223223
return f.RewardsFileHeader.ConsensusEndBlock
224224
}

Diff for: shared/services/rewards/rewards-file-v2.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -213,22 +213,22 @@ func (f *RewardsFile_v2) GetTotalNodeOperatorSmoothingPoolEth() *big.Int {
213213
return &f.RewardsFileHeader.TotalRewards.NodeOperatorSmoothingPoolEth.Int
214214
}
215215

216-
// Get the the execution start block
216+
// Get The execution start block
217217
func (f *RewardsFile_v2) GetExecutionStartBlock() uint64 {
218218
return f.RewardsFileHeader.ExecutionStartBlock
219219
}
220220

221-
// Get the the consensus start block
221+
// Get The consensus start block
222222
func (f *RewardsFile_v2) GetConsensusStartBlock() uint64 {
223223
return f.RewardsFileHeader.ConsensusStartBlock
224224
}
225225

226-
// Get the the execution end block
226+
// Get The execution end block
227227
func (f *RewardsFile_v2) GetExecutionEndBlock() uint64 {
228228
return f.RewardsFileHeader.ExecutionEndBlock
229229
}
230230

231-
// Get the the consensus end block
231+
// Get The consensus end block
232232
func (f *RewardsFile_v2) GetConsensusEndBlock() uint64 {
233233
return f.RewardsFileHeader.ConsensusEndBlock
234234
}

Diff for: shared/services/rewards/test/mock.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ func (h *MockHistory) GetEndNetworkState() *state.NetworkState {
633633
out.MinipoolDetailsByAddress[minipool.Address] = minipoolPtr
634634
out.MinipoolDetailsByNode[minipool.NodeAddress] = append(out.MinipoolDetailsByNode[minipool.NodeAddress], minipoolPtr)
635635

636-
// Finally, populate the the ValidatorDetails map
636+
// Finally, populate The ValidatorDetails map
637637
pubkey := minipool.Pubkey
638638
withdrawableEpoch := FarFutureEpoch
639639
exitEpoch := FarFutureEpoch

0 commit comments

Comments
 (0)