Skip to content

Commit

Permalink
fix invalid arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanaasagi committed Jun 15, 2023
1 parent 93f5737 commit 1761022
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ const Options = @import("./loader.zig").Options;
/// Where multiple declarations for the same environment variable exist in `.env`
/// file, the *first one* will be applied.
pub fn load(allocator: std.mem.Allocator, options: Options) !void {
var finder = FileFinder;
var finder = FileFinder.default();
const path = try finder.find(allocator);

try loadFrom(path, options);
try loadFrom(allocator, path, options);
}

/// Loads the `.env*` file from the given path.
Expand Down Expand Up @@ -68,3 +68,7 @@ test "test load real file" {
"# First Line Comment\nSecond Line\n#Third Line Comment\nFourth Line\n",
);
}

test {
std.testing.refAllDecls(@This());
}

0 comments on commit 1761022

Please sign in to comment.