lib/config: Remove unnecessary use of `fmt.Sprintf` (#8458)

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
deepsource-autofix[bot] 2022-07-28 17:00:41 +02:00 committed by GitHub
parent 0bdd0d595b
commit 7e26f74f38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ func deduplicateObservedFoldersToMap(input []ObservedFolder) map[string]Observed
func (cfg *DeviceConfiguration) Description() string {
if cfg.Name == "" {
return fmt.Sprintf("%s", cfg.DeviceID.Short())
return cfg.DeviceID.Short().String()
}
return fmt.Sprintf("%s (%s)", cfg.Name, cfg.DeviceID.Short())
}