Skip to content

Commit

Permalink
Removing .s from delete_parent_assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
dvmarcilio committed Dec 1, 2022
1 parent 0d68307 commit f11f6ef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions polyglot/piranha/src/cleanup_rules/go/rules.toml
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,7 @@ query = """
[
(short_var_declaration
left: (expression_list
.
(identifier) @identifier
.
)
) @assignment
(var_declaration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (c *Client) c(enabled2 bool, enabled3 bool) {
}

// should not replace the function name
func (c *Client) isEnabled() {
func (c *Client) isEnabled() bool {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (c *Client) c(enabled2 bool, enabled3 bool) {
}

// should not replace the function name
func (c *Client) isEnabled() {
func (c *Client) isEnabled() bool {
isEnabled := exp.BoolValue(staleFlagConst)
return isEnabled
}
Expand Down

0 comments on commit f11f6ef

Please sign in to comment.