Skip to content

Commit

Permalink
s/last/head/
Browse files Browse the repository at this point in the history
  • Loading branch information
olafurpg committed Sep 11, 2017
1 parent 3864dc6 commit e6f59d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scalafix/rules/src/main/scala/fix/Cats_v1_0_0.scala
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ case class SimplifyEitherTLift(index: SemanticdbIndex)
.leading(t.tokens.head)
.find(_.is[Token.Comma])
} yield {
val leadingSpaces = ctx.tokenList.slice(leadingComma, t.tokens.last)
val leadingSpaces = ctx.tokenList.slice(leadingComma, t.tokens.head)
ctx.removeToken(leadingComma) ++
leadingSpaces.map(ctx.removeToken) +
ctx.removeTokens(t.tokens)
Expand Down

0 comments on commit e6f59d1

Please sign in to comment.