
12 Nov
2020
12 Nov
'20
10:22 a.m.
On Thu, Nov 12, 2020 at 09:28:14AM +0800, Cao Xueliang wrote:
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.
Got it. 'ternary if' is clear here, too. Thanks, RenWen
Thanks, Xueliang
Thanks, RenWen
Thanks, Yuanchao