Skip to content

Commit b26ebd2

Browse files
committed
fix: Add todo comments for refactoring function into smallers independent units
1 parent 223dba9 commit b26ebd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cmd/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ func writeLastCheckTime(t time.Time) {
251251
// Check for the need of updates if AutoCheckUpdate is on, if its the first time
252252
// that version is checked or if has more than 24h since the last version check,
253253
// look into the repo if there's any more recent version
254+
// Todo : This is too big of a function. Refactor it to displayUpdateNotification, fetchLatestVersion,
255+
// shouldCheckForUpdates, chucks
254256
func CheckForUpdates() {
255257
var Config internal.ConfigType
256258

0 commit comments

Comments
 (0)