File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,15 +97,17 @@ var Beep = {
9797
9898 var titleMatch = postTitle && postTitle . match ( Beep . illegal_words ) ;
9999 if ( titleMatch ) {
100- return translator . translate ( '[[beep:titleMatch.error, ' + titleMatch [ 0 ] + ']]' , function ( translated ) {
100+ translator . translate ( '[[beep:titleMatch.error, ' + titleMatch [ 0 ] + ']]' , function ( translated ) {
101101 callback ( new Error ( translated ) ) ;
102102 } ) ;
103+ return ;
103104 }
104105 var contentMatch = postContent && postContent . match ( Beep . illegal_words ) ;
105106 if ( contentMatch ) {
106- return translator . translate ( '[[beep:contentMatch.error, ' + contentMatch [ 0 ] + ']]' , function ( translated ) {
107+ translator . translate ( '[[beep:contentMatch.error, ' + contentMatch [ 0 ] + ']]' , function ( translated ) {
107108 callback ( new Error ( translated ) ) ;
108109 } ) ;
110+ return ;
109111 }
110112
111113 callback ( null , data ) ;
@@ -153,9 +155,10 @@ var Beep = {
153155 } ) ;
154156
155157 if ( match ) {
156- return translator . translate ( '[[beep:tagMatch.error, ' + match [ 0 ] + ']]' , function ( translated ) {
158+ translator . translate ( '[[beep:tagMatch.error, ' + match [ 0 ] + ']]' , function ( translated ) {
157159 callback ( new Error ( translated ) ) ;
158160 } ) ;
161+ return ;
159162 }
160163
161164 data . tags = data . tags . map ( function ( tag ) {
You can’t perform that action at this time.
0 commit comments