Skip to content

Commit

Permalink
Merge pull request #7728 from ministryofjustice/fix/variable-shadowin…
Browse files Browse the repository at this point in the history
…g-in-utilities-rego

Fix variable shadowing in utilities.rego to resolve Regal linting error
  • Loading branch information
sukeshreddyg authored Aug 20, 2024
2 parents 2efc336 + a303cea commit 4367bd0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions policies/collaborators/utilities.rego
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import rego.v1

has_field(object, field) if {
object[field]
object[field] != ""
has_field(obj, field) if {
obj[field]
obj[field] != ""
}
6 changes: 3 additions & 3 deletions policies/environments/utilities.rego
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import rego.v1

has_field(object, field) if {
object[field]
object[field] != ""
has_field(obj, field) if {
obj[field]
obj[field] != ""
}
6 changes: 3 additions & 3 deletions policies/member/utilities.rego
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import rego.v1

has_field(object, field) if {
object[field]
object[field] != ""
has_field(obj, field) if {
obj[field]
obj[field] != ""
}
6 changes: 3 additions & 3 deletions policies/networking/utilities.rego
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import rego.v1

has_field(object, field) if {
object[field]
object[field] != ""
has_field(obj, field) if {
obj[field]
obj[field] != ""
}

0 comments on commit 4367bd0

Please sign in to comment.