Commit 05f6b3cc authored by Moe Jette's avatar Moe Jette
Browse files

03_hostlist_refactor_if-else-condition.diff from Gerrit

hostlist: factor out a pattern

This is a clerical patch which transforms a repeating pattern of type

 	if (dims > 1) {
		if (hr->width == dims) {
			// Alternative 'A'
		} else {
			// Alternative 'B'
		}
	} else {
		// Alternative 'B'
	}

into the shorter pattern

	if (dims > 1 && hr->width == dims) {
		// Alternative 'A'
	} else {
		// Alternative 'B'
	}
parent 98414776
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment