Reorganize function parameters to not specify repeat types

This commit is contained in:
2024-05-29 13:23:08 -04:00
parent 4d735d220b
commit c7a2b4fb95
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ func determineIndentation(skippedDirList []bool, dirList []string, currentDirInd
}
// processing for printing file entries (determines color, line wrapping, and prints)
func printFileEntry(entry string, lastSlash int, charCounter int, colorAlternator int8, indent int) (int, int8) {
func printFileEntry(entry string, lastSlash, charCounter, indent int, colorAlternator int8) (int, int8) {
// determine color to print fileEntryName (alternate each time function is run)
var colorCode string
if colorAlternator > 0 {
@@ -130,7 +130,7 @@ func EntryListGen() {
printDirectoryHeader(vanityDirectory, indent)
}
charCounter, colorAlternator = printFileEntry(file, lastSlash, charCounter, colorAlternator, indent)
charCounter, colorAlternator = printFileEntry(file, lastSlash, charCounter, indent, colorAlternator)
}
}
+1 -1
View File
@@ -14,7 +14,7 @@ import (
const ansiShownPassword = "\033[38;5;10m"
// EntryReader prints the decrypted contents of a libmutton entry in a human-readable format
func EntryReader(decryptedEntry []string, hideSecrets bool, syncEnabled bool) {
func EntryReader(decryptedEntry []string, hideSecrets, syncEnabled bool) {
fmt.Println()
for i := range decryptedEntry {