Skip to content

Commit

Permalink
Indent Else statements correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders-PlanetScale committed Sep 10, 2024
1 parent 3b8e936 commit c830a35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions cmd/internal/planetscale_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ func (psc PlanetScaleSource) DSN() string {
tt := psdbconnect.TabletType_primary
if psc.UseRdonly {
tt = psdbconnect.TabletType_batch
}
else if psc.UseReplica {
} else if psc.UseReplica {
tt = psdbconnect.TabletType_replica
}

Expand Down
3 changes: 1 addition & 2 deletions cmd/internal/planetscale_edge_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ func (p PlanetScaleEdgeDatabase) Read(ctx context.Context, w io.Writer, ps Plane
tabletType := psdbconnect.TabletType_primary
if ps.UseRdonly {
tabletType = psdbconnect.TabletType_batch
}
else if ps.UseReplica {
} else if ps.UseReplica {
tabletType = psdbconnect.TabletType_replica
}

Expand Down

0 comments on commit c830a35

Please sign in to comment.