Skip to content

$i -- #64

@warm-ice0x00

Description

@warm-ice0x00

$i-- is formatted to $i -- with the reformatter.
Example:

for ($i = 99; $i -gt 1; $i--) {
  Write-Output -InputObject "$i bottles of beer on the wall, $i bottles of beer."
  Write-Output -InputObject "Take one down and pass it around, $($i - 1) bottles of beer on the wall."
}

is reformatted to:

for ($i = 99; $i -gt 1; $i --) {
  Write-Output -InputObject "$i bottles of beer on the wall, $i bottles of beer."
  Write-Output -InputObject "Take one down and pass it around, $($i - 1) bottles of beer on the wall."
}

On the other hand, $i++ is still $i++ after reformatting.
Is this a bug or a feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions