@@ -124,22 +124,22 @@ func TestCaseInsensitiveCommandNames(t *testing.T) {
124
124
125
125
app .setup ()
126
126
127
- if c := app .BestCommand ("project:list" ); c != projectList {
127
+ if c , _ := app .BestCommand ("project:list" ); c != projectList {
128
128
t .Fatalf ("expected project:list, got %v" , c )
129
129
}
130
- if c := app .BestCommand ("Project:lISt" ); c != projectList {
130
+ if c , _ := app .BestCommand ("Project:lISt" ); c != projectList {
131
131
t .Fatalf ("expected project:list, got %v" , c )
132
132
}
133
- if c := app .BestCommand ("project:link" ); c != projectLink {
133
+ if c , _ := app .BestCommand ("project:link" ); c != projectLink {
134
134
t .Fatalf ("expected project:link, got %v" , c )
135
135
}
136
- if c := app .BestCommand ("project:Link" ); c != projectLink {
136
+ if c , _ := app .BestCommand ("project:Link" ); c != projectLink {
137
137
t .Fatalf ("expected project:link, got %v" , c )
138
138
}
139
- if c := app .BestCommand ("foo" ); c != projectList {
139
+ if c , _ := app .BestCommand ("foo" ); c != projectList {
140
140
t .Fatalf ("expected project:link, got %v" , c )
141
141
}
142
- if c := app .BestCommand ("FoO" ); c != projectList {
142
+ if c , _ := app .BestCommand ("FoO" ); c != projectList {
143
143
t .Fatalf ("expected project:link, got %v" , c )
144
144
}
145
145
}
@@ -154,27 +154,27 @@ func TestFuzzyCommandNames(t *testing.T) {
154
154
projectLink ,
155
155
}
156
156
157
- c := app .BestCommand ("project:list" )
157
+ c , _ := app .BestCommand ("project:list" )
158
158
if c != projectList {
159
159
t .Fatalf ("expected project:list, got %v" , c )
160
160
}
161
- c = app .BestCommand ("project:link" )
161
+ c , _ = app .BestCommand ("project:link" )
162
162
if c != projectLink {
163
163
t .Fatalf ("expected project:link, got %v" , c )
164
164
}
165
- c = app .BestCommand ("pro:list" )
165
+ c , _ = app .BestCommand ("pro:list" )
166
166
if c != projectList {
167
167
t .Fatalf ("expected project:list, got %v" , c )
168
168
}
169
- c = app .BestCommand ("pro:lis" )
169
+ c , _ = app .BestCommand ("pro:lis" )
170
170
if c != projectList {
171
171
t .Fatalf ("expected project:list, got %v" , c )
172
172
}
173
- c = app .BestCommand ("p:lis" )
173
+ c , _ = app .BestCommand ("p:lis" )
174
174
if c != projectList {
175
175
t .Fatalf ("expected project:list, got %v" , c )
176
176
}
177
- c = app .BestCommand ("p:li" )
177
+ c , _ = app .BestCommand ("p:li" )
178
178
if c != nil {
179
179
t .Fatalf ("expected no matches, got %v" , c )
180
180
}
0 commit comments