Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Oct 17, 2023
1 parent 23beee9 commit 800d312
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion commands/project_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Templates used by this tool are fetched from ` + templatesGitRepository + `.
ui.Section("Next Steps")

terminal.Println(" * Adapt the generated files if needed")
terminal.Printf(" * Commit them: <info>git add %s && git commit -m\"Add %s configuration\"</>\n", strings.Join(createdFiles, " "), brand.Name)
terminal.Printf(" * Commit them: <info>git add %s && git commit -m\"Add %s configuration\"</>\n", strings.Join(createdFiles, " "), brand)
terminal.Printf(" * Deploy: <info>%s deploy</>\n", c.App.HelpName)
} else {
terminal.Printf("Deploy the project via <info>%s deploy</>.\n", c.App.HelpName)
Expand Down
2 changes: 1 addition & 1 deletion envs/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (l *Local) Relationships() Relationships {
if err != nil {
if l.Debug {
brand := platformsh.GuessCloudFromDirectory(l.Dir)
fmt.Fprintf(os.Stderr, "ERROR: unable to get %s project information\n", brand.Name)
fmt.Fprintf(os.Stderr, "ERROR: unable to get %s project information\n", brand)
}
return dockerRel
}
Expand Down
2 changes: 1 addition & 1 deletion envs/local_tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (l *Local) relationshipsFromTunnel() Relationships {
if err != nil {
if l.Debug {
brand := platformsh.GuessCloudFromDirectory(l.Dir)
fmt.Fprintf(os.Stderr, "WARNING: unable to detect %s project: %s\n", brand.Name, err)
fmt.Fprintf(os.Stderr, "WARNING: unable to detect %s project: %s\n", brand, err)
}
return nil
}
Expand Down

0 comments on commit 800d312

Please sign in to comment.