Skip to content

Commit

Permalink
go.mk: lint with staticcheck (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
sauterp authored Jun 14, 2024
1 parent dcca7fb commit ba50151
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Improvements

- go.mk: lint with staticcheck #22

## 0.4.1

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GO_MK_REF := v1.0.0
GO_MK_REF := v2.0.0

# make go.mk a dependency for all targets
.EXTRA_PREREQS = go.mk
Expand Down
2 changes: 1 addition & 1 deletion path_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (role *Role) fromFieldData(data *framework.FieldData) error {
v2FieldSet := (role.Operations != nil || role.Resources != nil || role.Tags != nil)
v3FieldSet := role.IAMRoleID != ""
if v2FieldSet && v3FieldSet {
return errors.New("iam-role cannot be used in conjunction with the deprecated fields: operations, resources or tags.")
return errors.New("iam-role cannot be used in conjunction with the deprecated fields: operations, resources or tags")
}

if v3FieldSet {
Expand Down

0 comments on commit ba50151

Please sign in to comment.