Skip to content

Commit

Permalink
Small staticcheck fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arp242 committed Sep 10, 2024
1 parent fe43328 commit 7fce6c5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion format.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func (f *Format) processColumn(line string) error {
return nil
}

// Add a new line.
// Line adds a new line.
func (f *Format) Line(columns map[string]string) error {
if f.tbl() { // Don't need to do anything.
return nil
Expand Down
1 change: 1 addition & 0 deletions staticcheck.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
checks = ['all']
18 changes: 9 additions & 9 deletions unidata/emoji.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ func (e Emoji) With(mod EmojiModifier, selmod ...EmojiModifier) Emoji {
// 1F469 200D 2764 FE0F 200D 1F48B 200D 1F468 kiss: woman, man
// 👩 🏼 ❤️ 💋 👨 🏽
// 1F469 1F3FC 200D 2764 FE0F 200D 1F48B 200D 1F468 1F3FD kiss: woman, man, medium-light skin tone, medium skin tone
if isEmoji(e, 0x1F48F) {
// TODO
}
//if isEmoji(e, 0x1F48F) {
// // TODO
//}

// And finally with a heart:
//
Expand All @@ -190,9 +190,9 @@ func (e Emoji) With(mod EmojiModifier, selmod ...EmojiModifier) Emoji {
// 1F491 1F3FB couple with heart: light skin tone
// 🧑 🏾 ❤ 🧑 🏻
// 1F9D1 1F3FE 200D 2764 FE0F 200D 1F9D1 1F3FB couple with heart: person, person, medium-dark skin tone, light skin tone
if isEmoji(e, 0x1F491) {
// TODO
}
//if isEmoji(e, 0x1F491) {
// // TODO
//}

// "Family" supports settings the four family members' gender (no skintone
// support):
Expand All @@ -207,9 +207,9 @@ func (e Emoji) With(mod EmojiModifier, selmod ...EmojiModifier) Emoji {
// 1F468 200D 1F467 family: man, girl
// 👨 👧 👦
// 1F468 200D 1F467 200D 1F466 family: man, girl, boy
if isEmoji(e, 0x1F46A) {
// TODO
}
//if isEmoji(e, 0x1F46A) {
// // TODO
//}

e = e.applyGender(mod & (ModPerson | ModMale | ModFemale))
e = e.applyTone(mod &^ (ModPerson | ModMale | ModFemale))
Expand Down

0 comments on commit 7fce6c5

Please sign in to comment.