mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 12:27:28 +00:00
fix(lint): fix triple equal strict check
This commit is contained in:
@@ -80,7 +80,7 @@ export const CreateSecretForm = ({
|
|||||||
const pastedContent = e.clipboardData.getData('text');
|
const pastedContent = e.clipboardData.getData('text');
|
||||||
const splitIndex = pastedContent.indexOf("=");
|
const splitIndex = pastedContent.indexOf("=");
|
||||||
|
|
||||||
if (splitIndex == -1) return
|
if (splitIndex === -1) return
|
||||||
|
|
||||||
const key = pastedContent.slice(0, splitIndex)
|
const key = pastedContent.slice(0, splitIndex)
|
||||||
const value = pastedContent.slice(splitIndex + 1);
|
const value = pastedContent.slice(splitIndex + 1);
|
||||||
|
|||||||
+1
-1
@@ -141,7 +141,7 @@ export const CreateSecretForm = ({
|
|||||||
const pastedContent = e.clipboardData.getData('text');
|
const pastedContent = e.clipboardData.getData('text');
|
||||||
const splitIndex = pastedContent.indexOf("=");
|
const splitIndex = pastedContent.indexOf("=");
|
||||||
|
|
||||||
if (splitIndex == -1) return
|
if (splitIndex === -1) return
|
||||||
|
|
||||||
const key = pastedContent.slice(0, splitIndex)
|
const key = pastedContent.slice(0, splitIndex)
|
||||||
const value = pastedContent.slice(splitIndex + 1);
|
const value = pastedContent.slice(splitIndex + 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user