File tree Expand file tree Collapse file tree
src/main/kotlin/com/github/patou/gitmoji Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import com.intellij.vcs.log.ui.table.VcsLogGraphTable
77import com.intellij.vcs.log.ui.table.column.VcsLogCustomColumn
88import javax.swing.table.TableCellRenderer
99
10-
1110@Suppress(" UnstableApiUsage" )
1211class GitmojiCustomColumn : VcsLogCustomColumn <GitmojiData > {
1312 override val id: String
@@ -34,14 +33,13 @@ class GitmojiCustomColumn : VcsLogCustomColumn<GitmojiData> {
3433 }
3534
3635 override fun getValue (model : GraphTableModel , row : Int ): GitmojiData ? {
37- model.getCommitMetadata(row).let {
36+ model.getCommitMetadata(row).let { metadata ->
3837 for (moji in Gitmojis .gitmojis) {
39- if (it .subject.contains(moji.emoji) || it .subject.contains(moji.code)) {
38+ if (metadata .subject.contains(moji.emoji) || metadata .subject.contains(moji.code)) {
4039 return moji
4140 }
4241 }
4342 }
4443 return null
4544 }
46-
4745}
You can’t perform that action at this time.
0 commit comments