mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	js: Normalize strings to double quotes.
Prettier would do this anyway, but it’s separated out for a more reviewable diff. Generated by ESLint. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							06691e1e45
						
					
				
				
					commit
					f3726db89a
				
			@@ -1,9 +1,9 @@
 | 
			
		||||
#!/usr/bin/env node
 | 
			
		||||
 | 
			
		||||
const fs = require('fs');
 | 
			
		||||
const jsyaml = require('js-yaml');
 | 
			
		||||
const SwaggerParser = require('swagger-parser');
 | 
			
		||||
const ExampleValidator = require('openapi-examples-validator');
 | 
			
		||||
const fs = require("fs");
 | 
			
		||||
const jsyaml = require("js-yaml");
 | 
			
		||||
const SwaggerParser = require("swagger-parser");
 | 
			
		||||
const ExampleValidator = require("openapi-examples-validator");
 | 
			
		||||
 | 
			
		||||
(async () => {
 | 
			
		||||
    // Iterate through the changed files, passed in the arguments.
 | 
			
		||||
@@ -12,7 +12,7 @@ const ExampleValidator = require('openapi-examples-validator');
 | 
			
		||||
    for (const file of process.argv.slice(2)) {
 | 
			
		||||
        try {
 | 
			
		||||
            if (
 | 
			
		||||
                jsyaml.safeLoad(await fs.promises.readFile(file, 'utf8'), {
 | 
			
		||||
                jsyaml.safeLoad(await fs.promises.readFile(file, "utf8"), {
 | 
			
		||||
                    filename: file,
 | 
			
		||||
                }).openapi !== undefined
 | 
			
		||||
            ) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user