File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -718,7 +718,7 @@ devices:
718
718
}
719
719
720
720
select {
721
- case _ = <- stopCh :
721
+ case <- stopCh :
722
722
return
723
723
default :
724
724
}
@@ -748,7 +748,7 @@ devices:
748
748
}
749
749
750
750
select {
751
- case _ = <- stopCh :
751
+ case <- stopCh :
752
752
return
753
753
default :
754
754
}
@@ -771,10 +771,10 @@ devices:
771
771
// from updater()'s create+write+rename loop)
772
772
for {
773
773
select {
774
- case _ = <- stopCh :
774
+ case <- stopCh :
775
775
go osSync ()
776
776
return
777
- case _ = <- sync .C :
777
+ case <- sync .C :
778
778
go osSync ()
779
779
sync .Reset (2 * time .Second )
780
780
}
@@ -803,7 +803,7 @@ devices:
803
803
select {
804
804
case err = <- errCh :
805
805
require .NotNil (t , err )
806
- case _ = <- done :
806
+ case <- done :
807
807
close (stopCh )
808
808
wg .Wait ()
809
809
return
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ func Load(source string) (*Schema, error) {
135
135
case strings .HasPrefix (source , "http://" ):
136
136
case strings .HasPrefix (source , "https://" ):
137
137
default :
138
- if strings .Index (source , "://" ) < 0 {
138
+ if ! strings .Contains (source , "://" ) {
139
139
source , err = filepath .Abs (source )
140
140
if err != nil {
141
141
return nil , fmt .Errorf ("failed to get JSON schema absolute path for %s: %w" ,
You can’t perform that action at this time.
0 commit comments