mirror of
https://github.com/desktop/desktop
synced 2024-09-12 21:01:16 +00:00
use fancy new function
This commit is contained in:
parent
99a9f4f32f
commit
257b60a9df
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue