mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	eslint: change keyword-spacing from warning to error and fix violations.
This commit is contained in:
		@@ -20,7 +20,7 @@ var page_params = {
 | 
			
		||||
set_global('page_params', page_params);
 | 
			
		||||
 | 
			
		||||
var patched_underscore = _.clone(_);
 | 
			
		||||
patched_underscore.debounce = function (f) { return(f); };
 | 
			
		||||
patched_underscore.debounce = function (f) { return f; };
 | 
			
		||||
global.patch_builtin('_', patched_underscore);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -188,19 +188,19 @@ var _ = global._;
 | 
			
		||||
      'some_email@**everyone**.com'
 | 
			
		||||
    ];
 | 
			
		||||
    var i;
 | 
			
		||||
    for(i=0; i<messages_with_all_mentions.length; i++) {
 | 
			
		||||
    for (i=0; i<messages_with_all_mentions.length; i++) {
 | 
			
		||||
        assert(util.is_all_or_everyone_mentioned(messages_with_all_mentions[i]));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    for(i=0; i<messages_with_everyone_mentions.length; i++) {
 | 
			
		||||
    for (i=0; i<messages_with_everyone_mentions.length; i++) {
 | 
			
		||||
        assert(util.is_all_or_everyone_mentioned(messages_with_everyone_mentions[i]));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    for(i=0; i<messages_without_all_mentions.length; i++) {
 | 
			
		||||
    for (i=0; i<messages_without_all_mentions.length; i++) {
 | 
			
		||||
        assert(!util.is_all_or_everyone_mentioned(messages_without_everyone_mentions[i]));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    for(i=0; i<messages_without_everyone_mentions.length; i++) {
 | 
			
		||||
    for (i=0; i<messages_without_everyone_mentions.length; i++) {
 | 
			
		||||
        assert(!util.is_all_or_everyone_mentioned(messages_without_everyone_mentions[i]));
 | 
			
		||||
    }
 | 
			
		||||
}());
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@ function mkdir_p(path) {
 | 
			
		||||
    // This works like mkdir -p in Unix.
 | 
			
		||||
    try {
 | 
			
		||||
        fs.mkdirSync(path);
 | 
			
		||||
    } catch(e) {
 | 
			
		||||
    } catch (e) {
 | 
			
		||||
        if ( e.code !== 'EEXIST' ) {
 | 
			
		||||
            throw e;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user