Skip to content

Commit

Permalink
Update the variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthaI authored Feb 5, 2025
1 parent de603d6 commit aecb618
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gcp/ignore_error_predicate.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ func shouldIgnoreErrorPluginDefault() plugin.ErrorPredicateWithContext {
// Add to support regex match as per error message
for _, pattern := range gcpConfig.IgnoreErrorMessages {
// Validate regex pattern
re, err := regexp.Compile(pattern)
if err != nil {
panic(err.Error() + " the regex pattern configured in 'ignore_error_messages' is invalid. Edit your connection configuration file and then restart Steampipe")
re, er := regexp.Compile(pattern)
if er != nil {
panic(er.Error() + " the regex pattern configured in 'ignore_error_messages' is invalid. Edit your connection configuration file and then restart Steampipe")
}
result := re.MatchString(err.Error())
if result {
Expand Down

0 comments on commit aecb618

Please sign in to comment.