[yast-devel] WebYaST: use ||= Ruby operator
5 Nov
2009
5 Nov
'09
14:44
Use message ||= "Unknown error" instead of if message.nil? message = "Unknown error" end It makes the code shorter and more readable. -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
5283
Age (days ago)
5283
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ladislav Slezak