refactor: drop config file loading message
This commit is contained in:
parent
198ee29abe
commit
7dcde628ac
1 changed files with 1 additions and 1 deletions
|
|
@ -533,7 +533,7 @@ pub fn read_config(T: type, allocator: std.mem.Allocator) struct { T, [][]const
|
||||||
|
|
||||||
// returns true if the file was found
|
// returns true if the file was found
|
||||||
fn read_config_file(T: type, allocator: std.mem.Allocator, conf: *T, bufs: *[][]const u8, file_name: []const u8) bool {
|
fn read_config_file(T: type, allocator: std.mem.Allocator, conf: *T, bufs: *[][]const u8, file_name: []const u8) bool {
|
||||||
std.log.info("loading {s}", .{file_name});
|
// std.log.info("loading {s}", .{file_name});
|
||||||
const err: anyerror = blk: {
|
const err: anyerror = blk: {
|
||||||
if (std.mem.endsWith(u8, file_name, ".json")) if (read_json_config_file(T, allocator, conf, bufs, file_name)) return true else |e| break :blk e;
|
if (std.mem.endsWith(u8, file_name, ".json")) if (read_json_config_file(T, allocator, conf, bufs, file_name)) return true else |e| break :blk e;
|
||||||
if (read_text_config_file(T, allocator, conf, bufs, file_name)) return true else |e| break :blk e;
|
if (read_text_config_file(T, allocator, conf, bufs, file_name)) return true else |e| break :blk e;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue