mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-13 11:55:01 +00:00
Use consistent name casing (#1268)
- Use PascalCase for classes, with uppercase acronyms. - Use camelCase for function and variables. First word/acronym is always lowercase, otherwise acronyms are uppercase. Also, make the packet classes' `tag` properties `static`.
This commit is contained in:
@@ -30,8 +30,8 @@ if (Buffer) {
|
||||
return new Uint8Array(b.buffer, b.byteOffset, b.byteLength);
|
||||
};
|
||||
} else {
|
||||
encodeChunk = buf => btoa(util.uint8ArrayToStr(buf));
|
||||
decodeChunk = str => util.strToUint8Array(atob(str));
|
||||
encodeChunk = buf => btoa(util.uint8ArrayToString(buf));
|
||||
decodeChunk = str => util.stringToUint8Array(atob(str));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user