summaryrefslogtreecommitdiff
path: root/src/list.zig
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2022-04-26 00:44:24 +0300
committerGravatar Uko Kokņevičs2022-04-26 00:44:24 +0300
commit595477339b9e7dd696aaa31e21308f48c5a6109d (patch)
tree96dca0017a60c40dd5437645cb11d8ff92318baf /src/list.zig
parentAdd a missing const (diff)
downloadzup-595477339b9e7dd696aaa31e21308f48c5a6109d.tar.gz
zup-595477339b9e7dd696aaa31e21308f48c5a6109d.tar.xz
zup-595477339b9e7dd696aaa31e21308f48c5a6109d.zip
Add Installation.isActive, use it
Diffstat (limited to 'src/list.zig')
-rw-r--r--src/list.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/list.zig b/src/list.zig
index e5daa87..b6e3847 100644
--- a/src/list.zig
+++ b/src/list.zig
@@ -31,7 +31,7 @@ pub fn main(comptime Result: type, allocator: Allocator, res: Result) !void {
31 } 31 }
32 32
33 if (list_active) { 33 if (list_active) {
34 var active = try Installation.getActiveName(allocator); 34 const active = try Installation.getActiveName(allocator);
35 defer if (active) |s| allocator.free(s); 35 defer if (active) |s| allocator.free(s);
36 // TODO: zig-bug should I really need to do this? 36 // TODO: zig-bug should I really need to do this?
37 try printActive(if (active) |a| a else null); 37 try printActive(if (active) |a| a else null);