-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch functional options with no args to vars
This switches functional arguments with no variables to not taking arguments, meaning that they can be called like ```go r.Update(ctx, obj, client.UpdateDryRunAll) ``` instead of ```go r.Update(ctx, obj, client.UpdateDryRunAll()) ``` Options with arguments still get called as functions.
- Loading branch information
1 parent
c8e4c33
commit 0980dc5
Showing
2 changed files
with
22 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters