Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit201b6e6

Browse files
committed
chore: linting
1 parent2cc38ac commit201b6e6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

‎cmd/misspell/main.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func main() {
159159
//
160160
// Stuff to ignore
161161
//
162-
iflen(*ignores)>0 {
162+
if*ignores!="" {
163163
r.RemoveRule(strings.Split(*ignores,","))
164164
}
165165

@@ -188,7 +188,7 @@ func main() {
188188
defaultWrite=tmpl
189189
defaultRead=tmpl
190190
stdout.Println(sqliteHeader)
191-
caselen(*format)>0:
191+
case*format!="":
192192
t,err:=template.New("custom").Parse(*format)
193193
iferr!=nil {
194194
log.Fatalf("Unable to compile log format: %s",err)

‎ignore/glob.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func NewBaseGlobMatch(arg string, truth bool) (*GlobMatch, error) {
8989
// Arg true should be set to false if the output is inverted.
9090
funcNewPathGlobMatch(argstring,truthbool) (*GlobMatch,error) {
9191
// if starts with "/" then glob only applies to top level
92-
iflen(arg)>0&&arg[0]=='/' {
92+
ifarg!=""&&arg[0]=='/' {
9393
arg=arg[1:]
9494
}
9595

‎notwords.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var (
2020
funcRemovePath(sstring)string {
2121
out:= bytes.Buffer{}
2222
varidxint
23-
forlen(s)>0 {
23+
fors!="" {
2424
ifidx=strings.IndexByte(s,'/');idx==-1 {
2525
out.WriteString(s)
2626
break

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp