Skip to content

Commit

Permalink
Remove redundant helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
harry-cpp committed Oct 31, 2023
1 parent b086665 commit 113b339
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build/Program.cs
Expand Up @@ -8,9 +8,6 @@ public static int Main(string[] args)
.UseWorkingDirectory("../")
.UseContext<BuildContext>()
.Run(args);

public static string GetArgument(this ICakeArguments args, string argName, string defaultArgValue)
=> args.HasArgument(argName) ? args.GetArgument(argName) : defaultArgValue;
}

public class BuildContext : FrostingContext
Expand All @@ -19,7 +16,7 @@ public class BuildContext : FrostingContext

public BuildContext(ICakeContext context) : base(context)
{
ArtifactsDir = context.Arguments.GetArgument("artifactsDir", "artifacts");
ArtifactsDir = context.Arguments("artifactsDir", "artifacts").FirstOrDefault();
}
}

Expand Down

0 comments on commit 113b339

Please sign in to comment.