Skip to content

Commit

Permalink
fix: Passing empty download_uri to Package.fromUrl instead of null
Browse files Browse the repository at this point in the history
  • Loading branch information
Hejsil committed Jan 10, 2025
1 parent 2fb2a50 commit 4ddb762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ fn pkgsUpdateCommand(program: *Program) !void {
try add_packages.append(.{
.name = package_name,
.version = package.update.version,
.download = package.update.download,
.download = if (package.update.download.len == 0) null else package.update.download,
});
}

Expand Down

0 comments on commit 4ddb762

Please sign in to comment.