Skip to content

Commit

Permalink
Fix usage of deprecated substr (=> substring)
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Bergeron <mathieu.bergeron@nuecho.com>
  • Loading branch information
Mathieu Bergeron committed Oct 23, 2020
1 parent fc7e9a2 commit 21692b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/buildx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export async function getImageID(): Promise<string | undefined> {
}

export async function getSecret(kvp: string): Promise<string> {
const sepIndex = kvp.indexOf('=');
const key = kvp.substr(0, sepIndex);
const value = kvp.substr(sepIndex + 1);
const delimiterIndex = kvp.indexOf('=');
const key = kvp.substring(0, delimiterIndex);
const value = kvp.substring(delimiterIndex + 1);
const secretFile = context.tmpNameSync({
tmpdir: context.tmpDir()
});
Expand Down

0 comments on commit 21692b9

Please sign in to comment.