<commit_before>package main

import (
	"fmt"
	"os"

	"github.com/git-hook/git-ledger"
	"github.com/urfave/cli"
)

// List all records in the git-ledger.
func ls(c *cli.Context) error {
	records, err := ledger.GetRecords()
	if err != nil {
		fmt.Fprintf(os.Stderr, "%s\n", err)
		return err
	}

	for _, rec := range records {
		fmt.Println(fmt.Sprintf("%s: %s", rec.Slug, rec.Path))
	}

	// Ledger is empty
	if len(records) == 0 {
		fmt.Fprintf(os.Stderr, "Ledger is empty\n")
	}
	return nil
}<commit_msg>Stop ls from printing a special message when the ledger is empty<commit_after>package main

import (
	"fmt"
	"os"

	"github.com/git-hook/git-ledger"
	"github.com/urfave/cli"
)

// List all records in the git-ledger.
func ls(c *cli.Context) error {
	records, err := ledger.GetRecords()
	if err != nil {
		fmt.Fprintf(os.Stderr, "%s\n", err)
		return err
	}

	for _, rec := range records {
		fmt.Println(fmt.Sprintf("%s: %s", rec.Slug, rec.Path))
	}

	return nil
}
{'fraction_non_alphanumeric': 0.16356107660455488, 'fraction_numerical': 0.0010351966873706005, 'mean_word_length': 3.3954545454545455, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '768100', 'n_tokens_mistral': 407, 'n_tokens_neox': 388, 'n_words': 97}