parser: stray var -> const
Surprised there wasn't more of this in here, to be honest.
This commit is contained in:
parent
6e1199afa9
commit
03a4404a17
@ -160,7 +160,7 @@ pub fn Parser(comptime command: anytype, comptime callback: anytype) type {
|
|||||||
|
|
||||||
pub fn execute(self: *@This(), context: UserContext) anyerror!void {
|
pub fn execute(self: *@This(), context: UserContext) anyerror!void {
|
||||||
const args = try std.process.argsAlloc(self.allocator);
|
const args = try std.process.argsAlloc(self.allocator);
|
||||||
var env = try std.process.getEnvMap(self.allocator);
|
const env = try std.process.getEnvMap(self.allocator);
|
||||||
|
|
||||||
if (args.len < 1) return ParseError.EmptyArgs;
|
if (args.len < 1) return ParseError.EmptyArgs;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user