Skip to content

Commit 45cf294

Browse files
author
Tony
authored
Merge pull request #3 from tomwei7/objc-lint
update objc lint
2 parents 30b6eac + e572a32 commit 45cf294

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/lint/check_objc_package_prefix.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ func (v *fileOptionsObjcPackagePrefixVisitor) Finally() error {
5252
prefix = v
5353
}
5454
words := strings.Split(filepath.Dir(v.fileName), "/")
55-
for _, v := range words {
55+
for n, v := range words {
56+
if n == 0 {
57+
continue
58+
}
5659
prefix += objcUCFirst(v)
5760
}
5861
if value != prefix {

0 commit comments

Comments
 (0)