use fancy new function

This commit is contained in:
William Shepherd 2018-08-08 14:58:56 -05:00
parent 99a9f4f32f
commit 257b60a9df

View file

@ -1319,10 +1319,7 @@ export class AppStore extends TypedBaseStore<IAppState> {
const now = new Date()
const timeSinceFetch = now.getTime() - lastFetched.getTime()
const repoName =
repository.gitHubRepository !== null
? repository.gitHubRepository.fullName
: repository.name
const repoName = nameOf(repository)
if (timeSinceFetch < BackgroundFetchMinimumInterval) {
const timeInSeconds = Math.floor(timeSinceFetch / 1000)