mirror of
				https://github.com/jesseduffield/lazygit.git
				synced 2025-10-30 23:57:43 +02:00 
			
		
		
		
	Remove "double" formatting
This commit is contained in:
		| @@ -1,7 +1,6 @@ | ||||
| package helpers | ||||
|  | ||||
| import ( | ||||
| 	"fmt" | ||||
| 	"strings" | ||||
| 	"sync" | ||||
| 	"time" | ||||
| @@ -60,7 +59,7 @@ func (self *RefreshHelper) Refresh(options types.RefreshOptions) error { | ||||
|  | ||||
| 	t := time.Now() | ||||
| 	defer func() { | ||||
| 		self.c.Log.Infof(fmt.Sprintf("Refresh took %s", time.Since(t))) | ||||
| 		self.c.Log.Infof("Refresh took %s", time.Since(t)) | ||||
| 	}() | ||||
|  | ||||
| 	if options.Scope == nil { | ||||
| @@ -114,7 +113,7 @@ func (self *RefreshHelper) Refresh(options types.RefreshOptions) error { | ||||
| 					t := time.Now() | ||||
| 					defer wg.Done() | ||||
| 					f() | ||||
| 					self.c.Log.Infof(fmt.Sprintf("refreshed %s in %s", name, time.Since(t))) | ||||
| 					self.c.Log.Infof("refreshed %s in %s", name, time.Since(t)) | ||||
| 				}) | ||||
| 			} | ||||
| 		} | ||||
|   | ||||
| @@ -131,11 +131,9 @@ func (self *HandlerCreator) inputPrompt(prompt *config.CustomCommandPrompt, wrap | ||||
| func (self *HandlerCreator) generateFindSuggestionsFunc(prompt *config.CustomCommandPrompt) (func(string) []*types.Suggestion, error) { | ||||
| 	if prompt.Suggestions.Preset != "" && prompt.Suggestions.Command != "" { | ||||
| 		return nil, fmt.Errorf( | ||||
| 			fmt.Sprintf( | ||||
| 				"Custom command prompt cannot have both a preset and a command for suggestions. Preset: '%s', Command: '%s'", | ||||
| 				prompt.Suggestions.Preset, | ||||
| 				prompt.Suggestions.Command, | ||||
| 			), | ||||
| 			"Custom command prompt cannot have both a preset and a command for suggestions. Preset: '%s', Command: '%s'", | ||||
| 			prompt.Suggestions.Preset, | ||||
| 			prompt.Suggestions.Command, | ||||
| 		) | ||||
| 	} else if prompt.Suggestions.Preset != "" { | ||||
| 		return self.getPresetSuggestionsFn(prompt.Suggestions.Preset) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user