Explorar o código

Fixed code style, simplified text trimming.

Maksymilian Barnaś %!s(int64=9) %!d(string=hai) anos
pai
achega
b1c71f7540
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      dev/tasks/dev/utils/inquiries.js

+ 2 - 2
dev/tasks/dev/utils/inquiries.js

@@ -77,10 +77,10 @@ module.exports = {
 };
 
 function appendPeriodIfMissing( text ) {
-	text = text ? String.prototype.trim.call( text ) : '';
+	text = text ? text.trim() : '';
 	const length = text.length;
 
-	if ( length > 0 && text[length - 1] !== '.' ) {
+	if ( length > 0 && text[ length - 1 ] !== '.' ) {
 		text += '.';
 	}