Remove some random ass fmt printf
This commit is contained in:
3
main.go
3
main.go
@@ -219,12 +219,9 @@ func main() {
|
|||||||
// Print summary
|
// Print summary
|
||||||
if stats.TotalModifications == 0 {
|
if stats.TotalModifications == 0 {
|
||||||
logger.Warning("No modifications were made in any files")
|
logger.Warning("No modifications were made in any files")
|
||||||
fmt.Fprintf(os.Stderr, "No modifications were made in any files\n")
|
|
||||||
} else {
|
} else {
|
||||||
logger.Info("Operation complete! Modified %d values in %d/%d files",
|
logger.Info("Operation complete! Modified %d values in %d/%d files",
|
||||||
stats.TotalModifications, stats.ProcessedFiles, stats.ProcessedFiles+stats.FailedFiles)
|
stats.TotalModifications, stats.ProcessedFiles, stats.ProcessedFiles+stats.FailedFiles)
|
||||||
fmt.Printf("Operation complete! Modified %d values in %d/%d files\n",
|
|
||||||
stats.TotalModifications, stats.ProcessedFiles, stats.ProcessedFiles+stats.FailedFiles)
|
|
||||||
sortedCommands := []string{}
|
sortedCommands := []string{}
|
||||||
stats.ModificationsPerCommand.Range(func(key, value interface{}) bool {
|
stats.ModificationsPerCommand.Range(func(key, value interface{}) bool {
|
||||||
sortedCommands = append(sortedCommands, key.(string))
|
sortedCommands = append(sortedCommands, key.(string))
|
||||||
|
Reference in New Issue
Block a user