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:
718718 }
719719
720720 select {
721- case _ = <- stopCh :
721+ case <- stopCh :
722722 return
723723 default :
724724 }
@@ -748,7 +748,7 @@ devices:
748748 }
749749
750750 select {
751- case _ = <- stopCh :
751+ case <- stopCh :
752752 return
753753 default :
754754 }
@@ -771,10 +771,10 @@ devices:
771771 // from updater()'s create+write+rename loop)
772772 for {
773773 select {
774- case _ = <- stopCh :
774+ case <- stopCh :
775775 go osSync ()
776776 return
777- case _ = <- sync .C :
777+ case <- sync .C :
778778 go osSync ()
779779 sync .Reset (2 * time .Second )
780780 }
@@ -803,7 +803,7 @@ devices:
803803 select {
804804 case err = <- errCh :
805805 require .NotNil (t , err )
806- case _ = <- done :
806+ case <- done :
807807 close (stopCh )
808808 wg .Wait ()
809809 return
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ func Load(source string) (*Schema, error) {
135135 case strings .HasPrefix (source , "http://" ):
136136 case strings .HasPrefix (source , "https://" ):
137137 default :
138- if strings .Index (source , "://" ) < 0 {
138+ if ! strings .Contains (source , "://" ) {
139139 source , err = filepath .Abs (source )
140140 if err != nil {
141141 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