Skip to content

Commit

Permalink
fix PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kutluhanmetin committed Sep 4, 2023
1 parent 318f5ab commit 0521b03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/commands/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (cm *ShellCommand) ExecInteractive(ctx context.Context, ec plug.ExecContext
logText = fmt.Sprintf("Log %9s : %s", logLevel, logPath)
}
I2(fmt.Fprintf(ec.Stdout(), banner, internal.Version, cfgText, logText))
if err = maybePrintNewerVersion(ctx, ec); err != nil {
if err = maybePrintNewVersionNotification(ctx, ec); err != nil {
ec.Logger().Error(err)
}
}
Expand Down
2 changes: 1 addition & 1 deletion base/commands/update_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const (
checkInterval = time.Hour * 24 * 7
)

func maybePrintNewerVersion(ctx context.Context, ec plug.ExecContext) error {
func maybePrintNewVersionNotification(ctx context.Context, ec plug.ExecContext) error {
sa := store.NewStoreAccessor(filepath.Join(paths.Caches(), "update"), ec.Logger())
shouldSkip, err := shouldSkipNewerVersion(sa)
if err != nil {
Expand Down

0 comments on commit 0521b03

Please sign in to comment.