Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/bundler/linker.go
Original file line number Diff line number Diff line change
Expand Up @@ -3877,8 +3877,8 @@ func (c *linkerContext) generateCodeForFileInChunkJS(
r renamer.Renamer,
waitGroup *sync.WaitGroup,
partRange partRange,
entryBits helpers.BitSet,
chunkAbsDir string,
_ helpers.BitSet,
_ string,
toCommonJSRef js_ast.Ref,
toESMRef js_ast.Ref,
runtimeRequireRef js_ast.Ref,
Expand Down
2 changes: 1 addition & 1 deletion internal/css_ast/css_ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ type RAtImport struct {
ImportRecordIndex uint32
}

func (*RAtImport) Equal(rule R) bool {
func (*RAtImport) Equal(_ R) bool {
return false
}

Expand Down
4 changes: 2 additions & 2 deletions internal/css_parser/css_reduce_calc.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func (c *calcInvert) convertToToken(whitespace css_ast.WhitespaceFlags) (css_ast
}, true
}

func (c *calcNumeric) convertToToken(whitespace css_ast.WhitespaceFlags) (css_ast.Token, bool) {
func (c *calcNumeric) convertToToken(_ css_ast.WhitespaceFlags) (css_ast.Token, bool) {
text, ok := floatToStringForCalc(c.number)
if !ok {
return css_ast.Token{}, false
Expand All @@ -269,7 +269,7 @@ func (c *calcNumeric) convertToToken(whitespace css_ast.WhitespaceFlags) (css_as
}
}

func (c *calcValue) convertToToken(whitespace css_ast.WhitespaceFlags) (css_ast.Token, bool) {
func (c *calcValue) convertToToken(_ css_ast.WhitespaceFlags) (css_ast.Token, bool) {
t := c.token
t.Whitespace = 0
return t, true
Expand Down
2 changes: 1 addition & 1 deletion internal/css_printer/css_printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func (p *printer) printComplexSelectors(selectors []css_ast.ComplexSelector, ind
}
}

func (p *printer) printCompoundSelector(sel css_ast.CompoundSelector, isFirst bool, isLast bool) {
func (p *printer) printCompoundSelector(sel css_ast.CompoundSelector, isFirst bool, _ bool) {
if !isFirst && sel.Combinator == "" {
// A space is required in between compound selectors if there is no
// combinator in the middle. It's fine to convert "a + b" into "a+b"
Expand Down
4 changes: 2 additions & 2 deletions internal/fs/fs_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (fs *mockFS) OpenFile(path string) (OpenedFile, error, error) {
return nil, syscall.ENOENT, syscall.ENOENT
}

func (fs *mockFS) ModKey(path string) (ModKey, error) {
func (fs *mockFS) ModKey(_ string) (ModKey, error) {
return ModKey{}, errors.New("This is not available during tests")
}

Expand Down Expand Up @@ -148,7 +148,7 @@ func (*mockFS) Rel(base string, target string) (string, bool) {
return commonParent + target, true
}

func (fs *mockFS) kind(dir string, base string) (symlink string, kind EntryKind) {
func (fs *mockFS) kind(_ string, _ string) (symlink string, kind EntryKind) {
panic("This should never be called")
}

Expand Down
2 changes: 1 addition & 1 deletion internal/js_lexer/js_lexer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func assertEqualStrings(t *testing.T, a string, b string) {
}
}

func lexToken(t *testing.T, contents string) T {
func lexToken(_ *testing.T, contents string) T {
log := logger.NewDeferLog(logger.DeferLogNoVerboseOrDebug, nil)
lexer := NewLexer(log, test.SourceForTest(contents), config.TSOptions{})
return lexer.Token
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/api_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,7 @@ const minItemCountPerIter = 64
// The maximum number of intervals before a change is detected
const maxIntervalsBeforeUpdate = 20

func (w *watcher) start(logLevel LogLevel, color StderrColor, mode WatchMode) {
func (w *watcher) start(logLevel LogLevel, color StderrColor, _ WatchMode) {
useColor := validateColor(color)

go func() {
Expand Down