| ... | @@ -130,7 +130,7 @@ pub fn getMulti(name: string) ?[]const string { | ... | @@ -130,7 +130,7 @@ pub fn getMulti(name: string) ?[]const string { |
| 130 | return if (x.len > 0) x else null; | 130 | return if (x.len > 0) x else null; |
| 131 | } | 131 | } |
| 132 | | 132 | |
| 133 | pub fn getBool(name: string, default: bool) !bool { | 133 | pub fn getBool(name: string, default: bool) bool { |
| 134 | const x = getSingle(name) orelse return default; | 134 | const x = getSingle(name) orelse return default; |
| 135 | if (std.mem.eql(u8, x, "true")) return true; | 135 | if (std.mem.eql(u8, x, "true")) return true; |
| 136 | const y = extras.parseDigits(u1, x, 2) catch return default; | 136 | const y = extras.parseDigits(u1, x, 2) catch return default; |