Skip to content

Commit

Permalink
style: remove useless type
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed May 23, 2024
1 parent 1d991b7 commit 1866de3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/conversion/compiler/dataview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
getAPI,
isPluginEnabled,
type Literal,
type Success,
} from "obsidian-dataview";
import {
convertToInternalGithub,
Expand Down Expand Up @@ -119,9 +118,8 @@ class DataviewCompiler {
*/

async inlineDQLDataview(query: string) {
let dataviewResult = this.dvApi.evaluateInline(query, this.path);
const dataviewResult = this.dvApi.evaluateInline(query, this.path);
if (dataviewResult.successful) {
dataviewResult = dataviewResult as Success<Literal, string>;
return removeDataviewQueries(
dataviewResult.value,
this.properties.frontmatter.general
Expand Down

0 comments on commit 1866de3

Please sign in to comment.