On Thu, Nov 12, 2020 at 09:13:40AM +0800, Ren Wen wrote:
On Wed, Nov 11, 2020 at 07:37:24PM +0800, Li Yuanchao wrote:
- if File.file?(lab_cluster_file_path)
cluster_file_path = lab_cluster_file_path
- else
cluster_file_path = lkp_cluster_file_path
- end
You can use cluster_file_path = File.file?(lab_cluster_file_path) ? lab_cluster_file_path : lkp_cluster_file_path here.
Got it.
I think if-else-end is ok, it's more easy to understand.
Thanks, Xueliang
Thanks, RenWen
Thanks, Yuanchao