Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hasani committed Sep 17, 2024
1 parent d0c7e51 commit 0fc839a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,9 @@ export class Messenger {
public sendSkipTestsSelectionMessage(skipTestsSelection: string, tabID: string) {
// just for correct grammar
let skipTestsText = skipTestsSelection
if (skipTestsText === CodeWhispererConstants.doNotSkipTestsMessage) skipTestsText = 'not skip tests'
if (skipTestsText === CodeWhispererConstants.doNotSkipTestsMessage) {
skipTestsText = 'not skip tests'
}
const message = `Got it! Amazon Q will ${skipTestsText.toLowerCase()} when building your project.`
this.dispatcher.sendChatMessage(new ChatMessage({ message, messageType: 'prompt' }, tabID))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ describe('transformByQ', function () {
}).then((zipCodeResult) => {
const zip = new AdmZip(zipCodeResult.tempFilePath)
const manifestEntry = zip.getEntry('manifest.json')
if (!manifestEntry) fail('manifest.json not found in the zip')
if (!manifestEntry) {
fail('manifest.json not found in the zip')
}
const manifestBuffer = manifestEntry.getData()
const manifestText = manifestBuffer.toString('utf8')
const manifest = JSON.parse(manifestText)
Expand Down

0 comments on commit 0fc839a

Please sign in to comment.