Created
January 2, 2019 08:27
-
-
Save cdsap/a2af104968698aa3c139eb57c189bfdc to your computer and use it in GitHub Desktop.
SpecificBusinessLogic.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun get(): List<PairSymbol> { | |
val list = pairRepository.getPairs().filter { | |
it.primarySymbol != "BCH" | |
} | |
return if (list.isEmpty()) { | |
sync() | |
} else { | |
pairRepository.getPairs() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment