code refactoring

This commit is contained in:
2024-04-10 12:52:17 +02:00
parent 2f02293a52
commit d336b92e46
2 changed files with 2 additions and 22 deletions

View File

@@ -154,6 +154,7 @@ func (s *Service) UpdateExecutable(args NoArgs, updated *bool) error {
err := updater.UpdateExecutable()
if err != nil {
*updated = true
s.logger.Info("Succesfully updated yt-dlp")
return err
}
*updated = false