Skip to content

Commit

Permalink
refactor: fix redundant statements
Browse files Browse the repository at this point in the history
Redundant statements, like a break at the end of a case block, can be removed
for improving the code's readability.
  • Loading branch information
deepsource-autofix[bot] authored and p4u committed Jul 26, 2023
1 parent 24d44f0 commit 0a5f6bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ type Config struct {
func (c *Config) ValidMode() bool {
switch c.Mode {
case types.ModeGateway:
break

case types.ModeMiner:
break

case types.ModeSeed:
break

default:
return false
}
Expand All @@ -65,7 +65,7 @@ func (c *Config) ValidMode() bool {
func (c *VochainCfg) ValidDBType() bool {
switch c.DBType {
case db.TypePebble:
break

default:
return false
}
Expand Down

0 comments on commit 0a5f6bb

Please sign in to comment.