Skip to content

Commit ce962e0

Browse files
authored
Remove redundant code
Remove article count method of triggering "News Published" event because article UID change already confirms.
1 parent 8a19e42 commit ce962e0

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

GalnetMonitor/GalnetMonitor.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,9 @@ private async Task FetchGalnetAsync ()
213213
Logging.Debug( "Updated latest UID to " + firstUid );
214214
configuration.lastuuid = firstUid;
215215
ConfigService.Instance.galnetConfiguration = configuration;
216-
}
217-
218-
if ( newsItems.Count > 0 )
219-
{
220216
EDDI.Instance.enqueueEvent( new GalnetNewsPublishedEvent( DateTime.UtcNow, newsItems ) );
221217
}
222-
218+
223219
}
224220
catch ( Exception ex )
225221
{

0 commit comments

Comments
 (0)