all repos — searchix @ de987806cd030e85a22e11b35835a3524068adb7

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: package programs displayed off-centre
Alan Pearce alan@alanpearce.eu
Thu, 20 Mar 2025 20:27:50 +0100
commit

de987806cd030e85a22e11b35835a3524068adb7

parent

782b636c6ba9ebccecf46c7a1e5583e8108baf9a

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M internal/programs/programs.gointernal/programs/programs.go
@@ -105,7 +105,7 @@ return nil }
 
 func (p *DB) GetPackagePrograms(ctx context.Context, pkg string) ([]string, errors.E) {
-	programs := make([]string, 10)
+	var programs []string
 	if p.db == nil {
 		return nil, errors.New("database not open")
 	}