mirror of
https://github.com/makew0rld/amfora.git
synced 2025-02-02 15:07:34 -05:00
🚨 Remove nolints for now-disabled check
This commit is contained in:
parent
bc70108e37
commit
d95963aa62
@ -182,7 +182,7 @@ func Init() error {
|
|||||||
// Validate path
|
// Validate path
|
||||||
dDir := viper.GetString("a-general.downloads")
|
dDir := viper.GetString("a-general.downloads")
|
||||||
di, err := os.Stat(dDir)
|
di, err := os.Stat(dDir)
|
||||||
if err == nil { //nolint:gocritic
|
if err == nil {
|
||||||
if !di.IsDir() {
|
if !di.IsDir() {
|
||||||
return fmt.Errorf("downloads path specified is not a directory: %s", dDir)
|
return fmt.Errorf("downloads path specified is not a directory: %s", dDir)
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ func makeNewTab() *tab {
|
|||||||
// There's still a selection, but a different key was pressed, not Enter
|
// There's still a selection, but a different key was pressed, not Enter
|
||||||
|
|
||||||
index, _ := strconv.Atoi(currentSelection[0])
|
index, _ := strconv.Atoi(currentSelection[0])
|
||||||
if key == tcell.KeyTab { //nolint:gocritic
|
if key == tcell.KeyTab {
|
||||||
index = (index + 1) % numSelections
|
index = (index + 1) % numSelections
|
||||||
} else if key == tcell.KeyBacktab {
|
} else if key == tcell.KeyBacktab {
|
||||||
index = (index - 1 + numSelections) % numSelections
|
index = (index - 1 + numSelections) % numSelections
|
||||||
|
@ -101,11 +101,11 @@ func convertRegularGemini(s string, numLinks, width int) (string, []string) {
|
|||||||
for i := range lines {
|
for i := range lines {
|
||||||
lines[i] = strings.TrimRight(lines[i], " \r\t\n")
|
lines[i] = strings.TrimRight(lines[i], " \r\t\n")
|
||||||
|
|
||||||
if strings.HasPrefix(lines[i], "#") { //nolint:gocritic
|
if strings.HasPrefix(lines[i], "#") {
|
||||||
// Headings
|
// Headings
|
||||||
var tag string
|
var tag string
|
||||||
if viper.GetBool("a-general.color") {
|
if viper.GetBool("a-general.color") {
|
||||||
if strings.HasPrefix(lines[i], "###") { //nolint:gocritic
|
if strings.HasPrefix(lines[i], "###") {
|
||||||
tag = fmt.Sprintf("[%s::b]", config.GetColorString("hdg_3"))
|
tag = fmt.Sprintf("[%s::b]", config.GetColorString("hdg_3"))
|
||||||
} else if strings.HasPrefix(lines[i], "##") {
|
} else if strings.HasPrefix(lines[i], "##") {
|
||||||
tag = fmt.Sprintf("[%s::b]", config.GetColorString("hdg_2"))
|
tag = fmt.Sprintf("[%s::b]", config.GetColorString("hdg_2"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user