File tree Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -248,17 +248,17 @@ type Threshold float64
248
248
func (t * Threshold ) String () string {
249
249
if t == nil {
250
250
return "UNSET"
251
- } else {
252
- switch * t {
253
- case 0 :
254
- return "--verbose"
255
- case 1 :
256
- return "--threshold=1"
257
- case 30 :
258
- return "--critical"
259
- default :
260
- return fmt . Sprintf ( "--threshold=%g" , * t )
261
- }
251
+ }
252
+
253
+ switch * t {
254
+ case 0 :
255
+ return "--verbose"
256
+ case 1 :
257
+ return "--threshold=1"
258
+ case 30 :
259
+ return "--critical"
260
+ default :
261
+ return fmt . Sprintf ( "--threshold=%g" , * t )
262
262
}
263
263
}
264
264
@@ -328,17 +328,17 @@ const (
328
328
func (n * NameStyle ) String () string {
329
329
if n == nil {
330
330
return "UNSET"
331
- } else {
332
- switch * n {
333
- case NameStyleNone :
334
- return "none"
335
- case NameStyleHash :
336
- return "hash"
337
- case NameStyleFull :
338
- return "full"
339
- default :
340
- panic ( "Unexpected NameStyle value" )
341
- }
331
+ }
332
+
333
+ switch * n {
334
+ case NameStyleNone :
335
+ return "none"
336
+ case NameStyleHash :
337
+ return "hash"
338
+ case NameStyleFull :
339
+ return "full"
340
+ default :
341
+ panic ( "Unexpected NameStyle value" )
342
342
}
343
343
}
344
344
You can’t perform that action at this time.
0 commit comments