Skip to content

Commit

Permalink
Fix prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Oct 12, 2024
1 parent 531433d commit b8dc06f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/explain/explain.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,11 @@ func writeFileSetDiff(w io.Writer, d *spawn_diff.FileSetDiff) {
}
var prefix string
if oldResolvedPath != newResolvedPath {
prefix = fmt.Sprintf(" %s (%s -> %s):", f.LogicalPath, oldResolvedPath, newResolvedPath)
prefix = fmt.Sprintf(" %s (%s -> %s)", f.LogicalPath, oldResolvedPath, newResolvedPath)
} else if oldResolvedPath != f.LogicalPath {
prefix = fmt.Sprintf(" %s (%s):", f.LogicalPath, oldResolvedPath)
prefix = fmt.Sprintf(" %s (%s)", f.LogicalPath, oldResolvedPath)
} else {
prefix = fmt.Sprintf(" %s:", f.LogicalPath)
prefix = fmt.Sprintf(" %s", f.LogicalPath)
}
if oldType != newType {
_, _ = fmt.Fprintf(w, "%s: %s -> %s\n", prefix, oldType, newType)
Expand Down

0 comments on commit b8dc06f

Please sign in to comment.