File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -279,10 +279,12 @@ func (p *Project) updateWatchers() {
279
279
rootFileGlobs := p .getRootFileWatchGlobs ()
280
280
failedLookupGlobs , affectingLocationGlobs := p .getModuleResolutionWatchGlobs ()
281
281
282
- if updated , err := p .rootFilesWatch .update (rootFileGlobs ); err != nil {
283
- p .log (fmt .Sprintf ("Failed to update root file watch: %v" , err ))
284
- } else if updated {
285
- p .log ("Root file watches updated:\n " + formatFileList (rootFileGlobs , "\t " , hr ))
282
+ if rootFileGlobs != nil {
283
+ if updated , err := p .rootFilesWatch .update (rootFileGlobs ); err != nil {
284
+ p .log (fmt .Sprintf ("Failed to update root file watch: %v" , err ))
285
+ } else if updated {
286
+ p .log ("Root file watches updated:\n " + formatFileList (rootFileGlobs , "\t " , hr ))
287
+ }
286
288
}
287
289
288
290
if updated , err := p .failedLookupsWatch .update (failedLookupGlobs ); err != nil {
You can’t perform that action at this time.
0 commit comments