def id_found_or_limit_reached?
  if @upload_uuid || @request_uuid || (body.size > MAX_BODY)
    @data_buffer = nil
...

Ruby If statement with true retu...

by Dombesz, October 19, 2011 08:50, 7 refactorings, tagged with if else, return

The function should return ...

D41d8cd98f00b204e9800998ecf8427e Talk
UserAccessControl uac = new UserAccessControl();

            if (uac.IsAccessable)
...

C# Setting variable in if bloc...

by Zoltran, February 02, 2011 21:29, 5 refactorings, tagged with C#, if else, shorten

How can I write a shorter

D5303b0c98c5046f64ebb02445e85809 Talk
var value = $.trim($(this).val());

if ($(this).hasClass(invalidClass))
...

JavaScript jQuery script: too many ifs...

by Nathan, November 18, 2010 09:49, 3 refactorings, tagged with validation, jquery, if else

This is part of a jQuery pl...

D5145c421cd25af6fa577c15219add90 Talk
def validate_permalink(attr_name)
    if permalink?
      permalink = sanitize_permalink(attr_name)
...

Ruby Simple if staments

by rgoytacaz.myopenid.com, March 16, 2010 01:23, 3 refactorings, tagged with if else

easy one?

9fe77a0217c77ce4cb00096d863c8b45 Talk
<?php
function get_handle($type)
{
...

PHP Return the appropriate file...

by Nathan, February 09, 2010 00:35, 2 refactorings, tagged with if else, file handle

This method feels like it's...

D5145c421cd25af6fa577c15219add90 Talk
stuff.each do |name|
  name = name.downcase
  #size
...

Ruby ungliness and long too

by uberholden.myopenid.com, September 10, 2009 13:15, 6 refactorings, tagged with rails, ruby, if, case, if else

any ideas on making this mo...

55502f40dc8b7c769880b10874abc9d0 Talk
def show
    
    if params[:course_id] && permitted_to?(:browse, :videos)
...

Ruby Need to DRY this if-else up

by fnjord.myopenid.com, March 25, 2009 17:43, 3 refactorings, tagged with rails, ruby, dry, conditions, if else

I thought of creating a bef...

321bbdb120165eebbaf37e781d4ec71b Talk